Menu Click event

danasegarane

Active member
Joined
Jun 14, 2006
Messages
41
Programming Experience
Beginner
Dear All,
How to invoke the particular menu(Menustrip) click event during the form load event.


ome think like RaiseEvent("Finding_Click") ?

Thanks in Advance
Dana
 
VB.NET:
Sub Form_Load(...)
  DoThis()
End Sub

Sub Finding_Click(...)
  DoThis()
End Sub

Sub DoThis()
  ' doing something
End Sub
 
Dear Jhon,
Thanks for your reply. I want to know something like this
VB.NET:
RAISEEVENT (Button4, "Click" )

But this gives the error as
VB.NET:
Error	4	Identifier expected.
 
It's not how the RaiseEvent statement is used, see documentation, also it won't help you because you can only raise the class own events, you can't make the Button class raise its Click event from form without clicking the button.
 
Back
Top