-
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
-
Re: Key trapping
Try API Function GetAsyncKeyState().
Good Luck!
-
Re: Key trapping
THX!!!! ===))))
It working!
---
Dennis Lassing
[email protected]
icq: 17355083
-
Re: Key trapping
Set Form's KeyPreview = True ,and write the key checking code in FOrms's keyPress Event.
RK