Hi. If anyone could help me with that I'd be very happy.
I have a user-control that loads controls at runtime according to data from XML.
The problem: when I do this:
(the parameters are examples. the type and the name could be anything)Code:Controls.Add("vb.textbox", "washington_irving", frameMain)
Well, when I do this I can't handle events on the controls I load. How do I handle events (and don't tell me to use WithEvents because I don't know how many controls are loaded)?
I don't mind if your solution includes classes, other user-controls or anything. Just give me something that works....
Thanks!!




Reply With Quote