Click here to Skip to main content
15,920,110 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: click A button Upon giving its handle ? Pin
TJoe15-Oct-07 10:32
TJoe15-Oct-07 10:32 
GeneralRe: click A button Upon giving its handle ? Pin
jadothebest15-Oct-07 11:58
jadothebest15-Oct-07 11:58 
QuestionAfter a keyboard hook, GetTopWindow returns the window for ctfmon.exe Pin
alex_bol15-Oct-07 8:35
alex_bol15-Oct-07 8:35 
AnswerRe: After a keyboard hook, GetTopWindow returns the window for ctfmon.exe Pin
Dave Kreskowiak15-Oct-07 10:05
mveDave Kreskowiak15-Oct-07 10:05 
QuestionHow can i intercept Escape button in dialog form? Pin
wolfgangpuelm15-Oct-07 3:10
professionalwolfgangpuelm15-Oct-07 3:10 
AnswerRe: How can i intercept Escape button in dialog form? Pin
Giorgi Dalakishvili15-Oct-07 3:42
mentorGiorgi Dalakishvili15-Oct-07 3:42 
GeneralRe: How can i intercept Escape button in dialog form? Pin
wolfgangpuelm15-Oct-07 4:12
professionalwolfgangpuelm15-Oct-07 4:12 
AnswerRe: How can i intercept Escape button in dialog form? Pin
Mike Dimmick15-Oct-07 4:14
Mike Dimmick15-Oct-07 4:14 
For this I would normally handle the FormClosing event. You'll then get the opportunity to find out why the form is closing by checking the DialogResult property. You should normally make the Cancel button, the Escape key, and the X button in the top-right corner all do the same thing.

If you really want to go down the PreTranslateMessage route, you can implement the IMessageFilter interface and use Application.AddMessageFilter to have the framework call your filter function for each message.


DoEvents: Generating unexpected recursion since 1991

AnswerRe: How can i intercept Escape button in dialog form? Pin
wolfgangpuelm15-Oct-07 4:39
professionalwolfgangpuelm15-Oct-07 4:39 
Questioncreating new shell for windows Pin
sresth14-Oct-07 17:52
sresth14-Oct-07 17:52 
AnswerRe: creating new shell for windows Pin
Pete O'Hanlon15-Oct-07 1:13
mvePete O'Hanlon15-Oct-07 1:13 
AnswerRe: creating new shell for windows Pin
TyrionTheImp15-Oct-07 21:00
TyrionTheImp15-Oct-07 21:00 
QuestionHow to highlight an item in the ListBox control Pin
Mike Borozdin14-Oct-07 5:19
Mike Borozdin14-Oct-07 5:19 
AnswerRe: How to highlight an item in the ListBox control Pin
Mike Borozdin14-Oct-07 7:20
Mike Borozdin14-Oct-07 7:20 
QuestionHow to get HWND from System::Windows::Forms::Panel^ panel [modified] Pin
Newbie0014-Oct-07 0:05
Newbie0014-Oct-07 0:05 
QuestionText in label is mangled Pin
sudhirkamath9-Oct-07 9:40
sudhirkamath9-Oct-07 9:40 
AnswerRe: Text in label is mangled Pin
Paul Conrad27-Oct-07 13:37
professionalPaul Conrad27-Oct-07 13:37 
QuestionBackup Database Using Threads Pin
jikubhai9-Oct-07 4:25
jikubhai9-Oct-07 4:25 
AnswerRe: Backup Database Using Threads Pin
Koltz11-Oct-07 20:57
Koltz11-Oct-07 20:57 
QuestionLock Menus/Toolbars on Window Scroll Pin
Elizma9-Oct-07 0:57
Elizma9-Oct-07 0:57 
AnswerRe: Lock Menus/Toolbars on Window Scroll Pin
Dave Kreskowiak9-Oct-07 6:41
mveDave Kreskowiak9-Oct-07 6:41 
QuestionAppBars & the ShowDesktop command Pin
TyrionTheImp8-Oct-07 19:33
TyrionTheImp8-Oct-07 19:33 
QuestionPass handle to form Pin
mjanssen6-Oct-07 9:02
mjanssen6-Oct-07 9:02 
AnswerRe: Pass handle to form Pin
Kristian Sixhøj6-Oct-07 9:13
Kristian Sixhøj6-Oct-07 9:13 
GeneralRe: Pass handle to form Pin
mjanssen6-Oct-07 9:34
mjanssen6-Oct-07 9:34 

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.