Engine252 Posted December 18, 2003 Posted December 18, 2003 Hi i have a dinamic group of buttons but i want to centralize their events in one event eg i have button1 -> clickevent button2 -> clickevent button3 -> clickevent now i don't know the number of buttons at first so theyr dinamic wath i want to do is get all these events in on like buttons_click ( sender, ...) i gues i should use subbclassing but i never used it before is there onyone who can help me or explane me what i should do :confused: Quote
*Experts* mutant Posted December 18, 2003 *Experts* Posted December 18, 2003 Create a handler that will accept the required arguments and use the AddHandler keyword to add an event handler for the object. To see which button raised the event use the sender object and cast it to a button. 'example AddHandler object.event, AddressOf handlermethod 'do this for every button you add Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.