Error while loading controls dynamically

Dec 10 2014 10:59 PM

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)