Hello All greate pro.
I have created a form to practice about the C#.Net2 (in VS2005). consist of a Form, Grid, and some button.
I want that... when I right click on the grid it will show a popup menu on the grid only...
I have done it but all the things working fine....such as Click on menu shows my option which I want... But I have assigned a short cur key(Ctrl+A). But it is not working.
When I pressed Ctrl+A it does not show any options... nor I am getting any event where I can write a code for pressing of Ctrl+A......
I have wrote the code in ItemClicked of Context Menu Control but not getting any Events for the ShortcutKeys.... Please help me ...
Thanks in Advance
How can I create Popupmenu in my C#.Net 2 (2005) windows form?
You need to write event handlers for each of the individual menu items. Then, when you use the ShortcutKeys, the event for the corresponding menu item will fire.
Open your context menu in the designer, double-click on the menu item that you have assigned to the shortcut CTRL + A. This will automatically open the code view with the new event handler.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment