Using VB 2008 Express.
Attaching code to buttons when they’re clicked is easy when they’re static buttons on the form; just double click the button on the form designer and add code to the event.
I have a series of buttons that are generated in a control array, so they’re generated in a class, and in the form there are no buttons until runtime.
So newbie question with a probably simple answer…how do I enter code for the click event for buttons that aren’t there until they’re instantiated as a class at runtime?
The way you would do it for regular buttons, I think.
What action do you want to take on each of the buttons? If the action is different for each of the button, could you give an example of what it looks like?
EDIT: Crude code ahead