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
///
 

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

Back
Top