call another procedure...

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
 
L

Lenard Gunda

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top