2
Answers

Error while loading controls dynamically

Hi,

I am using following code in winform but it throws error while dynamically add the control.

Button button = new Button();
button.Name = "h Enter";
button.Text = "Enter";
this.Controls.Add(button);

Answers (2)