On Feb 13, 3:05 pm, "olds350racer" <olds350ra...@bellsouth.net> wrote:
> I am. I'm adding an array of labels during the Load event of the
> UserControl.
Oh sorry, misread the question. so you want to be able to respond to
mylabel(1) click, mylabel(2) click, right?
Hmmm... off the top of my head, the only way I can think of is to
write a subclass of Label with the clickhandler you want, and then add
those to the controls, rather than the regular Label class.
Or, you could write the click handlers in the main form, and pass a
delegate to each of the labels, and then the label click handlers
could invoke the delegate...
There might be other ways. I haven't tried this. yet