Click to See Complete Forum and Search --> : Key trapping


RealKiller
December 5th, 1999, 05:46 PM
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
gdi@dds.nl
icq: 17355083

Ruth Glushkin
December 6th, 1999, 01:57 AM
Try API Function GetAsyncKeyState().

Good Luck!

RealKiller
December 6th, 1999, 03:47 AM
THX!!!! ===))))
It working!

---
Dennis Lassing
gdi@dds.nl
icq: 17355083

Ravi Kiran
December 6th, 1999, 04:00 AM
Set Form's KeyPreview = True ,and write the key checking code in FOrms's keyPress Event.

RK