Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Screen : Form
- {
- public Screen()
- {
- CreateInput(400, 100);
- CreateInput(400, 300);
- }
- private void CreateInput(int x, int y)
- {
- Label t = new Label();
- TextBox i = new TextBox();
- t.Location = new Point(x, y);
- i.Location = new Point(x + 50, y);
- this.Controls.Add(i);
- this.Controls.Add(t);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement