Re: Capture F5 Keystroke
From: BruSoft (bruce_at_bru-soft.com)
Date: 11/26/03
- Next message: Ndi: "Re: Modularization - Packages, DLLs, COM - Which is best?"
- Previous message: Donlad: "Capture F5 Keystroke"
- In reply to: Donlad: "Capture F5 Keystroke"
- Next in thread: Donald: "Re: Capture F5 Keystroke"
- Reply: Donald: "Re: Capture F5 Keystroke"
- Reply: Donald: "Re: Capture F5 Keystroke"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 25 Nov 2003 19:19:03 -0800
Donlad wrote:
>Can some help figure out how to capture if F5 is pressed.
>
>
Key is passed to the OnKeyUp, OnKeyDown, etc. events. Check if Key
= VK_F5
>
>secondly when the users closes the app clicking the x in the top right, how
>do I show a message box asking are you sure. I can display the message box,
>but not sure how to cancel the terminate.
>
>
In the OnCloseQuery event on the form put your message box and if
you want to cancel the close, set the CanClose parameter sent into the
event to False.
>
>Thanks
>
>Donald
>
>
>
>
-- Bruce Michener http://www.bru-soft.com
- Next message: Ndi: "Re: Modularization - Packages, DLLs, COM - Which is best?"
- Previous message: Donlad: "Capture F5 Keystroke"
- In reply to: Donlad: "Capture F5 Keystroke"
- Next in thread: Donald: "Re: Capture F5 Keystroke"
- Reply: Donald: "Re: Capture F5 Keystroke"
- Reply: Donald: "Re: Capture F5 Keystroke"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|