Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1. class Screen : Form
  2. {    
  3.     public Screen()
  4.         {  
  5.             CreateInput(400, 100);
  6.             CreateInput(400, 300);
  7.         }
  8.  
  9.         private void CreateInput(int x, int y)
  10.         {
  11.             Label t = new Label();
  12.             TextBox i = new TextBox();
  13.             t.Location = new Point(x, y);
  14.             i.Location = new Point(x + 50, y);
  15.             this.Controls.Add(i);
  16.             this.Controls.Add(t);
  17.         }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement