SirCmpwn

Untitled

Apr 28th, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.83 KB | None | 0 0
  1.             this.Size = new Size(200, 50);
  2.             TextInput text = new TextInput();
  3.             text.Size = new Size(20, 10);
  4.             text.Position = new Point(0, 0);
  5.             text.BackgroundColor = ConsoleColor.Cyan;
  6.             text.ForegroundColor = ConsoleColor.Black;
  7.             text.BackgroundStyle = BackgroundStyle.Solid;
  8.             text.Text = "TextInput 1";
  9.             this.Controls.Add(text);
  10.  
  11.             TextInput text2 = new TextInput();
  12.             text2.Size = new Size(20, 10);
  13.             text2.Position = new Point(20, 0);
  14.             text2.BackgroundColor = ConsoleColor.Cyan;
  15.             text2.ForegroundColor = ConsoleColor.Black;
  16.             text2.BackgroundStyle = BackgroundStyle.Dark;
  17.             text2.Text = "TextInput 2";
  18.             this.Controls.Add(text2);
  19.  
  20.             TextInput text3 = new TextInput();
  21.             text3.Size = new Size(20, 10);
  22.             text3.Position = new Point(40, 0);
  23.             text3.BackgroundColor = ConsoleColor.Cyan;
  24.             text3.ForegroundColor = ConsoleColor.Black;
  25.             text3.BackgroundStyle = BackgroundStyle.Medium;
  26.             text3.Text = "TextInput 3";
  27.             this.Controls.Add(text3);
  28.  
  29.             TextInput text4 = new TextInput();
  30.             text4.Size = new Size(20, 10);
  31.             text4.Position = new Point(60, 0);
  32.             text4.BackgroundColor = ConsoleColor.Cyan;
  33.             text4.ForegroundColor = ConsoleColor.Black;
  34.             text4.BackgroundStyle = BackgroundStyle.Light;
  35.             text4.Text = "TextInput 4";
  36.             this.Controls.Add(text4);
  37.  
  38.             TextString textString = new TextString();
  39.             textString.Text = "Hello, world!";
  40.             textString.ForegroundColor = ConsoleColor.Red;
  41.             textString.Position = new Point(0, 10);
  42.             this.Controls.Add(textString);
Advertisement
Add Comment
Please, Sign In to add comment