
But I`m Apologize, this blog does not give the tutorial sequentially from simple to advanced tutorials. But in this blog, what I knows What I write on this blog.
POST ADSENSE ADS
HERE
THAT HAVE BEEN PASSED
HERE
THAT HAVE BEEN PASSED
How to check the CAPSLOCK with VB 6
Tmp = GetKeyState(vbKeyCapital)
If Tmp = 1 Then
MsgBox "The Caps Lock Is On"
Else
MsgBox "The Caps Lock Is Off"
End If
- Create a project in VB 6
- Input 1 button
- Double click on the button
- Input this code below on the button
- Or like this
- Run
Tmp = GetKeyState(vbKeyCapital)
If Tmp = 1 Then
MsgBox "The Caps Lock Is On"
Else
MsgBox "The Caps Lock Is Off"
End If
Private Sub Command1_Click()
Tmp = GetKeyState(vbKeyCapital)
If Tmp = 1 Then
MsgBox "The Caps Lock Is On"
Else
MsgBox "The Caps Lock Is Off"
End If
End Sub
Or see the picture below You can place that source code above whereby only according to needs such as in the event load or other events.
As for the example application is as follows
I think That's enought for Visual Basic 6 tutorials about how to check the CAPSLOCK with VB 6. See ya...
Tags vb 6
Subscribe Our Newsletter
0 Comment
Post a Comment