Re: How to get KeyCode and Shift

David Symanowicz <[email protected]> Thu, 24 Apr 2003 18:36:00 -0400
Newsgroups gmane.comp.windows.devel.vbcom
Message-ID <[email protected]>
Ronaldo,

You can use GetKeyState( keyCode ) from the Win32API.  If the return value
is negative (high-order bit is set), the key is down. You can also find out
if the key is "toggled" based on the low-order bit.   See MSDN for more
info...

-Dave


-----Original Message-----
From: Technical discussion of VBCOM [mailto:[email protected]]On
Behalf Of Ronaldo Nogueira
Sent: Thursday, April 24, 2003 6:06 PM
To: [email protected]
Subject: [VBCOM] How to get KeyCode and Shift


Hi,

I'd like to know if a Key is pressed, within an Event that doesn't show the
KeyCode or Shift parameters, like DragOver, for example.
Can anybody help me?

Thanks in advance.

Regards,

Ronaldo

You can read messages from the VBCOM archive, unsubscribe from VBCOM, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the VBCOM archive, unsubscribe from VBCOM, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.