How get the name of a MenuItem

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

Guest

Hi,

I use the same routine to handle the click event of any MenuItem
I want to get the name of the selected menu before do something...
Select Case CType(sender, MenuItem).Name
Case "A"
........
Case "B"
........
End Select
Where is the MenuItem.Name property ???

Many thanks
NQ
 
NQ said:
I use the same routine to handle the click event of any MenuItem
I want to get the name of the selected menu before do something...

Menu items do not have names.
Select Case CType(sender, MenuItem).Name
Case "A"
.......
Case "B"
.......
End Select

\\\
Select Case True
Case sender Is Me.MenuItem1
...
Case sender Is Me.MenuItem2
...
...
End Select
///
 
Thanks a lot...
NQ

Herfried K. Wagner said:
Menu items do not have names.


\\\
Select Case True
Case sender Is Me.MenuItem1
...
Case sender Is Me.MenuItem2
...
...
End Select
///
 
Back
Top