I take it that you prefer a VB example since you have been cross-posting to VB newsgroups. You use the following code to add an event handler i VB.net (this example uses the Click event of the Button control):
AddHandler Button1.Click, New EventHandler(AddressOf Button1_Click)
because i have a same problem regarding this topic but...
using C++
how to access the events for the dynamic controls I created on the fly using C++?
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.