|
-
December 5th, 1999, 06:46 PM
#1
Key trapping
How can i trap a key? Not like the "shortkey" function were only the form is displayed, but I want to execute more code than just showwindow...
Example:
So when ALT-Z is pressed ANYWHERE, I want the caption of button A changed into: Click here.
Please help? Thanks in advance
---
Dennis Lassing
[email protected]
icq: 17355083
-
December 6th, 1999, 02:57 AM
#2
Re: Key trapping
Try API Function GetAsyncKeyState().
Good Luck!
-
December 6th, 1999, 04:47 AM
#3
Re: Key trapping
THX!!!! ===))))
It working!
---
Dennis Lassing
[email protected]
icq: 17355083
-
December 6th, 1999, 05:00 AM
#4
Re: Key trapping
Set Form's KeyPreview = True ,and write the key checking code in FOrms's keyPress Event.
RK
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|