Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.Size = new Size(200, 50);
- TextInput text = new TextInput();
- text.Size = new Size(20, 10);
- text.Position = new Point(0, 0);
- text.BackgroundColor = ConsoleColor.Cyan;
- text.ForegroundColor = ConsoleColor.Black;
- text.BackgroundStyle = BackgroundStyle.Solid;
- text.Text = "TextInput 1";
- this.Controls.Add(text);
- TextInput text2 = new TextInput();
- text2.Size = new Size(20, 10);
- text2.Position = new Point(20, 0);
- text2.BackgroundColor = ConsoleColor.Cyan;
- text2.ForegroundColor = ConsoleColor.Black;
- text2.BackgroundStyle = BackgroundStyle.Dark;
- text2.Text = "TextInput 2";
- this.Controls.Add(text2);
- TextInput text3 = new TextInput();
- text3.Size = new Size(20, 10);
- text3.Position = new Point(40, 0);
- text3.BackgroundColor = ConsoleColor.Cyan;
- text3.ForegroundColor = ConsoleColor.Black;
- text3.BackgroundStyle = BackgroundStyle.Medium;
- text3.Text = "TextInput 3";
- this.Controls.Add(text3);
- TextInput text4 = new TextInput();
- text4.Size = new Size(20, 10);
- text4.Position = new Point(60, 0);
- text4.BackgroundColor = ConsoleColor.Cyan;
- text4.ForegroundColor = ConsoleColor.Black;
- text4.BackgroundStyle = BackgroundStyle.Light;
- text4.Text = "TextInput 4";
- this.Controls.Add(text4);
- TextString textString = new TextString();
- textString.Text = "Hello, world!";
- textString.ForegroundColor = ConsoleColor.Red;
- textString.Position = new Point(0, 10);
- this.Controls.Add(textString);
Advertisement
Add Comment
Please, Sign In to add comment