call another procedure...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to call another on_click procedure but fail...
e.g.

Sub try()
call button2_click() ' what should i put in (??, ??) since I don't know the
source and asg... in order to call button correctly
End Sub

sub button2_click( source as object, asg as ...)
....
End Sub

thanks

Ed
 
Excuse my syntax, if it's wrong, because I am not familiar with Visual Basic
(.NET).

You can simply call it with:

call button2_click ( Me, EventArgs.Empty )

I think Me is what refers to the current instance (like the 'this' keyword
in c#)

-Lenard
 
Back
Top