[HELP]Disable/enable keyboard
Page 1 of 1 • Share •
Re: [HELP]Disable/enable keyboard
i dint test it though...vb6
- Code:
Dim flag_ed As Boolean
Private Sub Command1_Click()
flag_ed = Not flag_ed
If flag_ed Then
Command1.Caption = "Disable KeyBoard"
Else
Command1.Caption = "Enable KeyBoard"
End If
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If flag_ed Then
Else
KeyCode = 0
End If
End Sub
Private Sub Form_KeyPress(KeyAscii As Integer)
If flag_ed Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
If flag_ed Then
Else
KeyCode = 0
End If
End Sub
Private Sub Form_Load()
flag_ed = True
Command1.Caption = "Disable KeyBoard"
End Sub
_________________

Thanks to FusioN for this awesome sig :]

~Fleck- Moderator

- Posts: 274
Activity: -258
Reputation: 8
Join date: 2009-06-28
Age: 16
Location: 127.0.0.1
Permissions of this forum:
You cannot reply to topics in this forum
Home







