customizing shortcut keys...
-
hi all, is there anyways by which i can use customized shortcut keys in C#.net2005... normally it comes as a combination of Ctrl, shift or alt keys.... but i want to use text keys as shortcut keys.. not the combination of textkeys with ctrl, alt or shift.... thanks in advance..
-
hi all, is there anyways by which i can use customized shortcut keys in C#.net2005... normally it comes as a combination of Ctrl, shift or alt keys.... but i want to use text keys as shortcut keys.. not the combination of textkeys with ctrl, alt or shift.... thanks in advance..
You can't do that as sortcut keys are always in the combination of ALT, CTL, Shift keys. Otherwise how do the system will understnad you want to type simple text of it was a sortcut key.
Regards, Amit Kumar HDISM, PGDCA, MCP, MCAD, MCSD amit_chikara2002@hotmail.com
-
hi all, is there anyways by which i can use customized shortcut keys in C#.net2005... normally it comes as a combination of Ctrl, shift or alt keys.... but i want to use text keys as shortcut keys.. not the combination of textkeys with ctrl, alt or shift.... thanks in advance..
You could enable
Form.KeyPreview
, register to any of the keyboard events e.g.Form.KeyDown
. Then inside the event handler check for your custom shortcut keys and do whatever you want if one of them occurs.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook