Jump to content
Software FX Community

Re: Capturing a Key Event in "LButtonDown"

User (Legacy)

Recommended Posts

This worked great! Thanks for your suggestion... 

For those of you who might want to know how, here are the decalres:

Public Declare Function GetKeyState Lib "user32" (ByVal nVirtKey As Long) As


Public Const VK_CONTROL = &H11

And to check the status:

If GetKeyState(VK_CONTROL) < 0 Then

'Youre in business!

End If


"Francisco Padron" <frankp@softwarefx.com> wrote in message


> There is a Windows API call called GetKeyState that allows you to retrieve

> the state of a key (say SHIFT). don't know if there is an equivalent

> function in VB but if there isn't you can always call this one directly.


> Frank



Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...