0

I have tried to google this but returned nothing useful;

I have code which runs in a menu item (StartToolStripMenuItem_Click).
Later in the project i want to code clicking this menu item but if i just use the StartToolStripMenuItem_Click sub it wants the 'e' argument passed to it. I simply can not work out what i should be passing.....any ideas please.

Many Thanks
David

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by gingernob
0

This

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
       
        StartToolStripMenuItem.PerformClick()
       
End Sub

Or This

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
       
       StartToolStripMenuItem_Click(StartToolStripMenuItem, EventArgs.Empty)

End Sub
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.