![]() |
![]() |
![]() |
Read the NumLock and CapsLock key states |
|||
|
Steve McMahon(steve@vbaccelerator.com) |
![]() |
||
|
![]() |
|||
|
01/08/98 |
![]() |
||
Other Tips |
This sample demonstrates how to determine the state of the NumLock and CapsLock key
(plus any other key on the keyboard at the same time).
Private Declare Function GetKeyboardState Lib "user32" (pbKeyState As Byte) As Long When you run the code, the label is updated with the current Caps and Num Lock states as they are pressed. |
|||
  |
Related Tips and Articles: |
|
![]() |
  |
![]() |
|
About Contribute Send Feedback Privacy
|