Keep in touch

you can keep in touch with my all blogs and sites by install this Toolbar...
http://rworldtoolbar.ourtoolbar.com/

Thursday, July 10, 2008

How to get CAPS LOCK IS ON (VB.NET)

When User Type a Password, How to give a message CAPS LOCK is On or not.

Private Sub txtPassword_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtPassword.TextChanged
If My.Computer.Keyboard.CapsLock = True Then
'MsgBox("CAPS LOCK is ON", MsgBoxStyle.Information, "Password")
End If
End Sub

1 comment:

cippo said...

thanks.. this is best of the best tutorial.