Link to home
Start Free TrialLog in
Avatar of deepakyadav
deepakyadav

asked on

how to get Caps and Num Lock information on statusbar in vb.net

i am using statusbar control in vb.net
and i have made two panels on that and i want that whenever i run this application and at that time if users do caps on/ off or num lock on/off then it appears in my status bar
how can i do it.
ASKER CERTIFIED SOLUTION
Avatar of mahanatti
mahanatti

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mahanatti
mahanatti

To get the NumLock info

Dim numlocki = GetKeyState(&H90)
    If numlocki Then
      MsgBox("NumLock On")
    End If

-Maha.