i have a situation here...
i want to dynamically add buttons on my form.... say if i retrieve a number from my db (e.g. 5) then i wanna have 5 buttons in my form.
what i've plan to do is to......
...created a user control that has a button. so what i want to do is to dynamically call the user control.
i'll declare an int variable to retrieve a number for my db... say if the number is 5, i want to create 5 of the user control in my form.
and another problem is that when i insert 5 of those controls in my form, i want to pass a parameter to it.
so my question is that can this be possible?
is this possible?
my objecttive is just to create buttons accordingly (to the number retrieved) and crreate the button dynamically to have diff text, location, and also image
i want to dynamically add buttons on my form.... say if i retrieve a number from my db (e.g. 5) then i wanna have 5 buttons in my form.
what i've plan to do is to......
...created a user control that has a button. so what i want to do is to dynamically call the user control.
i'll declare an int variable to retrieve a number for my db... say if the number is 5, i want to create 5 of the user control in my form.
and another problem is that when i insert 5 of those controls in my form, i want to pass a parameter to it.
so my question is that can this be possible?
is this possible?
my objecttive is just to create buttons accordingly (to the number retrieved) and crreate the button dynamically to have diff text, location, and also image