I have a panel apart from the menu strip on my MDI parent form which has several buttons like new, edit, delete, save , close etc... how can i assign shortcut keys to it ?
Printable View
I have a panel apart from the menu strip on my MDI parent form which has several buttons like new, edit, delete, save , close etc... how can i assign shortcut keys to it ?
There is SendKeys.Send({shortcut key}) method.
You can find more here.
http://msdn2.microsoft.com/en-us/lib...keys.send.aspx
First up, I'm not sure that a panel with Buttons is the appropriate option. Wouldn't a ToolStrip be a better option?
That said, with Buttons you would normally include an ampersand in the Text and the following letter will be the access key, just like with menu items. You "click" the Button by pressing that letter's key along with the Alt key.