Use the AddHandler method...here is how it goes: AddHandler Button1.Click, AddressOf Button1_Click
Regards Naweed Akram -----Original Message----- From: Ali Husain [mailto:[EMAIL PROTECTED] Sent: Monday, January 17, 2005 12:31 AM To: [email protected] Subject: [AspNetAnyQuestionIsOk] Vb.Net Question Does anyone know how to access the Click Event of a button that was created dynamically using Dim newbutton as button Controls.add(newbutton) Well the buttons create, but how do you set up the code for when you click on one of those buttons Thanks, Ali [Non-text portions of this message have been removed] Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
