Exemple #1
0
 public static TextBoxEx AddTextBox(this Control parent)
 {
     var textBox = new TextBoxEx();
     textBox.Parent = parent;
     textBox.Dock = DockStyle.Fill;
     textBox.Style = "textbox";
     return textBox;
 }
Exemple #2
0
 public static TextBoxEx AddTextBox(this Control parent, int x, int y, int width)
 {
     var textBox = new TextBoxEx();
     textBox.Parent = parent;
     textBox.Size = new Point(width, 20);
     textBox.Style = "textbox";
     textBox.Position = new Point(x, y);
     return textBox;
 }