When calling InvokeMethod, one can simply do:
VB Code:
Dim p() As Object = {"your ugly mother", 0} InvokeMethod(Me, "Button1_Click", p)
Now, Button1_Click takes two arguments:
sender of type System.Object,
e of type System.EventArgs
Which maps to where? Can someone explains what happens to "your ugly mother" and 0 when the Invoke method gets called?




Reply With Quote