Hi.
In practice they have never left!
Consider naming your control events Control1, Control2 etc.
e.g.
VB Code:
Private Sub Control1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Then, say, select the number allocated to the control you want to fire, store it in a string variable and then concant it on to the string "Control" and then add the event name,
so that you end up with, say, (if using Buttons)
VB Code:
Dim strTest As String = "Control1_Click"
Then
VB Code:
CallByName(Me, strTest, Microsoft.VisualBasic.CallType.Method, Sender, e)
You have then performed the click event of Button1
(I guess you guys have noticed that I've gone mad on the CallByName function)




)
Reply With Quote