Regarding CAPS LOCK

arunkumar

Member
Joined
Dec 1, 2009
Messages
9
Programming Experience
Beginner
I want to check the caps lock's status using label. ie if caps lock is on it should show the status as "caps on" in my label.please help me

Thanks in advance,
:cool:
 
My.Computer.Keyboard.CapsLock property can also be used.
 
I agree!
VB.NET:
If My.Computer.Keyboard.CapsLock = True Then
            Label1.Text = "Caps Lock is On"
        Else
            Label1.Text = "Caps Lock is off"
        End If
        Return CheckCaps
 
Back
Top