Click here to Skip to main content
15,886,724 members
Home / Discussions / C#
   

C#

 
GeneralRe: Shortcut key for an Application ONLY? Pin
pdoy07084-Sep-07 22:59
pdoy07084-Sep-07 22:59 
GeneralRe: Shortcut key for an Application ONLY? Pin
Giorgi Dalakishvili4-Sep-07 23:11
mentorGiorgi Dalakishvili4-Sep-07 23:11 
GeneralRe: Shortcut key for an Application ONLY? Pin
pdoy07084-Sep-07 23:53
pdoy07084-Sep-07 23:53 
GeneralRe: Shortcut key for an Application ONLY? Pin
Giorgi Dalakishvili4-Sep-07 23:59
mentorGiorgi Dalakishvili4-Sep-07 23:59 
GeneralRe: Shortcut key for an Application ONLY? Pin
pdoy07085-Sep-07 0:26
pdoy07085-Sep-07 0:26 
GeneralRe: Shortcut key for an Application ONLY? Pin
Giorgi Dalakishvili5-Sep-07 0:28
mentorGiorgi Dalakishvili5-Sep-07 0:28 
GeneralRe: Shortcut key for an Application ONLY? Pin
pdoy07085-Sep-07 0:24
pdoy07085-Sep-07 0:24 
AnswerRe: how to assign a Shortcut key for an Application ONLY in C#? Pin
Luc Pattyn5-Sep-07 0:09
sitebuilderLuc Pattyn5-Sep-07 0:09 
Hi,

for printable characters (letters, digits, punctuation) you should use the KeyPress event;
its event arg provides a KeyChar property which is a char, so don't compare it to
(char)Keys.A instead compare it to 'a' or 'A'.

special characters (escape, enter, ...) don't fire the KeyPress event; you should use
the KeyDown (possibly KeyUp) event for these; its event arg provides a KeyCode property
which is a Keys, so that one you can compare to Keys.Escape and others.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


AnswerRe: how to assign a Shortcut key for an Application ONLY in C#? Pin
Dan Neely5-Sep-07 5:45
Dan Neely5-Sep-07 5:45 
Questiondisabling hotkeys Pin
tahir_makhdoom4-Sep-07 22:04
tahir_makhdoom4-Sep-07 22:04 
AnswerRe: disabling hotkeys Pin
Giorgi Dalakishvili4-Sep-07 22:14
mentorGiorgi Dalakishvili4-Sep-07 22:14 
GeneralRe: disabling hotkeys Pin
Vasudevan Deepak Kumar4-Sep-07 22:23
Vasudevan Deepak Kumar4-Sep-07 22:23 
AnswerRe: disabling hotkeys Pin
Sathesh Sakthivel5-Sep-07 0:02
Sathesh Sakthivel5-Sep-07 0:02 
Questioncan i use a Forum which is developed in 1.1 Framework. Pin
Kumar Arun4-Sep-07 22:02
Kumar Arun4-Sep-07 22:02 
AnswerRe: can i use a Forum which is developed in 1.1 Framework. Pin
Dave Kreskowiak5-Sep-07 5:57
mveDave Kreskowiak5-Sep-07 5:57 
Questionstartmenu programs Pin
tahir_makhdoom4-Sep-07 21:58
tahir_makhdoom4-Sep-07 21:58 
AnswerRe: startmenu programs Pin
Giorgi Dalakishvili4-Sep-07 22:12
mentorGiorgi Dalakishvili4-Sep-07 22:12 
QuestionHow to Capture "Ctrl+Enter" Pin
jason_mf4-Sep-07 21:46
jason_mf4-Sep-07 21:46 
AnswerRe: How to Capture "Ctrl+Enter" Pin
Giorgi Dalakishvili4-Sep-07 21:49
mentorGiorgi Dalakishvili4-Sep-07 21:49 
GeneralRe: How to Capture "Ctrl+Enter" Pin
jason_mf4-Sep-07 22:15
jason_mf4-Sep-07 22:15 
GeneralRe: How to Capture "Ctrl+Enter" Pin
Giorgi Dalakishvili4-Sep-07 22:22
mentorGiorgi Dalakishvili4-Sep-07 22:22 
GeneralRe: How to Capture "Ctrl+Enter" Pin
jason_mf4-Sep-07 22:50
jason_mf4-Sep-07 22:50 
GeneralRe: How to Capture "Ctrl+Enter" Pin
Giorgi Dalakishvili4-Sep-07 22:54
mentorGiorgi Dalakishvili4-Sep-07 22:54 
GeneralRe: How to Capture "Ctrl+Enter" Pin
jason_mf4-Sep-07 23:17
jason_mf4-Sep-07 23:17 
GeneralRe: How to Capture "Ctrl+Enter" Pin
Giorgi Dalakishvili4-Sep-07 23:32
mentorGiorgi Dalakishvili4-Sep-07 23:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.