User (Legacy) Posted April 14, 2000 Report Share Posted April 14, 2000 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 Integer 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 news:DE0379D14694D211B4CE00609770710D050493@sftfx-221.wamnet.net... > 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 > SFX > Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.