Click here to Skip to main content
15,663,341 members
Home / Discussions / C#
   

C#

 
QuestiontxtBox_Leave Pin
Assaf824-Sep-07 22:56
Assaf824-Sep-07 22:56 
AnswerRe: txtBox_Leave Pin
I.explore.code5-Sep-07 0:05
I.explore.code5-Sep-07 0:05 
Questionhow to assign a Shortcut key for an Application ONLY in C#? Pin
pdoy07084-Sep-07 22:21
pdoy07084-Sep-07 22:21 
AnswerRe: Shortcut key for an Application ONLY? Pin
Giorgi Dalakishvili4-Sep-07 22:28
mentorGiorgi Dalakishvili4-Sep-07 22:28 
GeneralRe: Shortcut key for an Application ONLY? Pin
pdoy07084-Sep-07 22:34
pdoy07084-Sep-07 22:34 
GeneralRe: Shortcut key for an Application ONLY? Pin
Giorgi Dalakishvili4-Sep-07 22:44
mentorGiorgi Dalakishvili4-Sep-07 22:44 
GeneralRe: Shortcut key for an Application ONLY? Pin
pdoy07084-Sep-07 23:20
pdoy07084-Sep-07 23:20 
GeneralRe: Shortcut key for an Application ONLY? Pin
Giorgi Dalakishvili4-Sep-07 23:36
mentorGiorgi Dalakishvili4-Sep-07 23:36 
1. If you want to quit your application when escape button is pressed then set form's cancelbutton property will help you.

2. You can test it like this:

<br />
 if (e.KeyChar == (char)Keys.Escape)<br />
                MessageBox.Show("escape was pressed");<br />


It works in the same way for Enter key too

#region signature
my articles
#endregion

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 
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 

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.