Is there any way I can get the effects of declaring objects using
WithEvents while also having indexed addressing?
I'm designing a control that has several buttons, the functions of which
vary only by the value of the integers they return and their visual
placement in the layout of my control. I would be saving a lot of time
and code if I could use indexed addressing [buttons(i).Text] rather than
having to address each control by a different name [button14.Text].
Any ideas on how to keep both indexed addressing *and* the withevents
declaration? Should I just declare all the buttons (button1, button2,
etc) by hand using the WithEvents keyword and then assign them to the
elements of an array?
Thanks,
-Joel