How can I get a Menu Item's ShortcutKeys = Alt+Enter

  • Thread starter Christian Blackburn
  • Start date
C

Christian Blackburn

Hi Gang,

I have a context menu in my application where users click over files.
How can I get the shortcutkeys property of a menu item equal to
Alt+Enter? I don't see Enter or Return anywhere in the list. Perhaps
it's under a different name. I'm using the US English versions of
Windows and VB 2005 Express.

Thanks for reading or responding,
Christian Blackburn
 
J

Joergen Bech

mnuTestItem.ShortcutKeys = Keys.Alt Or Keys.Enter

But you are right: The Enter key (and a lot of other keys) do not show
up in the PropertyGrid. Perhaps because they are using a custom
property page for selecting the key and have left those keys out for
some reason. Dunno. Cannot be bothered to investigate right now.

/Joergen Bech
 

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

Top