Create Shortcut key in C#
-
I want to select a member of TabControl by stroking keyboard but not by clicking the mouse on it.So,I think I have to create a shortcut key for that member.Can you tell me how to create it? Thanks
Hello Friends
with a keyboard event ?
Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.
-
I want to select a member of TabControl by stroking keyboard but not by clicking the mouse on it.So,I think I have to create a shortcut key for that member.Can you tell me how to create it? Thanks
Hello Friends
if i understand correctly you want to make a event on e keypress no with a mouse ex. pressing the F* to raise the event that you want. i think that in the form that you want to do the shortcut you have to enable keyPreview to True and on the keydown event of the form you should write that on what keycode it should raise this event. ex...
if (e.KeyCode == Keys.F8)
{
write the code...
}maybe it should help
spaps