I need some help! I am dynamically generating buttons onto a panel
control in a web form as shown:
For Each aColorName In en.GetNames(en.GetType)
Dim btn As New Button()
btn.ID = aColorName
btn.BackColor = System.Drawing.Color.FromName(aColorName)
btn.CommandName = aColorName
btn.CommandArgument = aColorName
pnlColor.Controls.Add(btn)
Next
Can I programatically access the onCommand" method of these buttons? if
yes how? if not any alternative suggestions? I want to use these buttons
to change the color properties (back, fore, border) of an image control.
thanks