how to allow the user to select the shortcut key?

sarmad

Active member
Joined
Jan 22, 2006
Messages
37
Programming Experience
1-3
hi all

first

sorry for my lot of question and peoblem.


is there any way to let user to set the shrtcut ?

look like "shortcut key" in properties of the shortcut file

i know about keypress and keydown or keyup but how to use them to auto detect the key and set it?

example ctrl+h . when it happen one by one i can get keycode or keychar but if they press by user in one time and hold it together

i cant read it by kecode or keypress.

thanks
 
Try using something like this to set the shortcut key:

VB.NET:
TestToolStripMenuItem.ShortcutKeys = Keys.ControlKey + Keys.H
 
Back
Top