Click here to Skip to main content
15,885,760 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have menuStrip,and add som menuItem for example File,User,..
i set shortcutkeys for User menu,ALT+U
how do i use keys in my form?i like when user pressed ALT+U
that User menu opening such as when user clik on User menu.
what event of User menu?
thankyou
Posted

1 solution

Every menuitem has a shortcut property[^].
You can define keystroke combinations in this property.

In addition you can use the & symbol while defining text.
For example, if you define E&xit as the text for a menu, alt + x will execute the menu's code for this menu item.

This link[^] is a good tutorial.
 
Share this answer
 
Comments
azar660 5-May-12 13:17pm    
thank you,but when i use persian char for menuitem text,this solution dont result.
only select menu and dont open menu

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900