How do I access events from dynamically created controls on WinForms app?

  • Thread starter Thread starter acool
  • Start date Start date
A

acool

I created this cool Usercontrol but now I am at a loss for how to access the
events for the dynamic controls I created on the fly?
 
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)

Regards, Jakob.
 
Guys, sorry for butting-in .....

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++?
 
Back
Top