Help! How to solve this problem?
-
In the following code: ------------------------------------- Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem1.Click, MenuItem2.Click, MenuItem3.Click ..... End Sub -------------------------------------- How to determine which menuItem is clicked? Thanks.
-
In the following code: ------------------------------------- Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem1.Click, MenuItem2.Click, MenuItem3.Click ..... End Sub -------------------------------------- How to determine which menuItem is clicked? Thanks.
cast the first parameter to a menuitem, if the cast succeeds, check its name property... Absolute faith corrupts as absolutely as absolute power Eric Hoffer The opposite of the religious fanatic is not the fanatical atheist but the gentle cynic who cares not whether there is a god or not. Eric Hoffer
-
cast the first parameter to a menuitem, if the cast succeeds, check its name property... Absolute faith corrupts as absolutely as absolute power Eric Hoffer The opposite of the religious fanatic is not the fanatical atheist but the gentle cynic who cares not whether there is a god or not. Eric Hoffer
-
In the following code: ------------------------------------- Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem1.Click, MenuItem2.Click, MenuItem3.Click ..... End Sub -------------------------------------- How to determine which menuItem is clicked? Thanks.
-
-
try this: Dim ItemClicked as MenuItem ItemClicked=Ctype(sender,menutitem) the do IF statement or Case Select
-