private void addButton (string Text, Point Location, Size Size) { Button b = new Button(); b.Name = Text; b.Text = Text; b.Location = Location; b.Size = Size; this.Controls.Add(b); } private void addLabel(string Text, Point Location, Size Size) { Label l = new Label(); l.Name = Text; l.Text = Text; l.Location = Location; l.Size = Size; this.Controls.Add(l); }