|
-
May 31st, 2013, 07:19 AM
#1
Thread Starter
Junior Member
How can I add keyboard shortcuts to a menu items?
How can I add functional keyboard shortcuts to menu items?
ex: New Project Ctrl + N
-
May 31st, 2013, 07:22 AM
#2
Re: How can I add keyboard shortcuts to a menu items?
The way I have always done it is to use the ampersand in the name.
for example .Text = &New gives New and Ctrl+N is the keyboard shortcut.
Is that what you are after?
-
May 31st, 2013, 07:25 AM
#3
Thread Starter
Junior Member
Re: How can I add keyboard shortcuts to a menu items?
Yes it is. That seemed to work, thank you.
-
May 31st, 2013, 10:47 AM
#4
Re: How can I add keyboard shortcuts to a menu items?
Also, to assign shortcuts to menustripitems, there is a ShortCutKey property. You can set it in design time or in code.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|