Ways to set short cut keys for controls on a windows forms application(nirandas.com)
submitted by
redcap(420) 3 years, 5 months ago
Setting short cut keys for menus, buttons etc are very easy in the .net framework, you just have to set the ShortCut property for menu items. And for buttons etc, you can indicate the access key to be used for the control by putting a & sign just before the letter which should be used as the access key like, setting the text of the button control to “&Open” would set the shortcut key “Alt+O” for the button. However, if you want use other key combinations for the shortcut keys like Ctrl+a, Ctrl+F10 etc, for any controls other than menus or if you want to provide shortcut keys for textbox, you can’t simply set any property or use the & sign to indicate it.
|category: Windows Forms
|Views: 75
tags:
winforms another
Everyones tags:
Your Tags: