A arunkumar Member Joined Dec 1, 2009 Messages 9 Programming Experience Beginner Dec 9, 2009 #1 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,
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,
tglanton Member Joined Oct 29, 2009 Messages 5 Programming Experience Beginner Dec 9, 2009 #2 Hi, have a look at this link. it may help. How do I get the current state of Caps Lock in VB.NET? - Stack Overflow Upvote 0 Downvote
Hi, have a look at this link. it may help. How do I get the current state of Caps Lock in VB.NET? - Stack Overflow
JohnH VB.NET Forum Moderator Staff member Joined Dec 17, 2005 Messages 15,799 Location Norway Programming Experience 10+ Dec 9, 2009 #3 My.Computer.Keyboard.CapsLock property can also be used. Upvote 0 Downvote
C CNC_Man Member Joined Dec 5, 2009 Messages 16 Programming Experience Beginner Dec 11, 2009 #4 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 Upvote 0 Downvote
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