how to write a event for a dynamically created controll in C#
-
how to write a event for a dynamically created controll in C#, For Example i have created a combo box, Check Box dynamically in C#, when a User Select a item from combo box, it will will show which item he has selected using a message Box. Please help me out. burhan
-
how to write a event for a dynamically created controll in C#, For Example i have created a combo box, Check Box dynamically in C#, when a User Select a item from combo box, it will will show which item he has selected using a message Box. Please help me out. burhan
Suppose myCombo is the name of your dynamically created control....then add a Event handler like this....
myCombo .SelectedIndexChanged += new System.EventHandler(this.cmbDynamicNameCombo_SelectedIndexChanged);
Now put your code incmbDynamicNameCombo_SelectedIndexChanged
Tirtha Miles to go before I sleep