|
-
Aug 7th, 2000, 02:35 AM
#1
Thread Starter
Member
Hi,
I'd like to lock the keyboard in order to prevent the user to do certain anything in a form.
If someone can help me...
Thank you
COSIDUS
-
Aug 7th, 2000, 04:09 AM
#2
How about:
Code:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
KeyCode = 0
End Sub
Private Sub Form_Load()
Form1.KeyPreview = True
End Sub
This sample it pretty limited (only keypress on the form), but you can do the same thing for any other control thats on your form.
Code:
Private Sub Text1_KeyPress(KeyAscii As Integer)
KeyAscii = 0
End Sub
Sunny
-
Aug 7th, 2000, 08:57 AM
#3
Try:
Code:
Shell "rundll32 keyboard,disable"
-
Aug 26th, 2000, 10:31 AM
#4
New Member
mousebutton?
is something similar also possible with a mousebutton? i included a flash4 movie into the vb6 app and i want to lock the right mouse click because the annoying ugly grey popup menu ruins my design...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|