Results 1 to 4 of 4

Thread: LOCK THE KEYBOARD

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2000
    Location
    LAVAL ( FRANCE )
    Posts
    32

    Unhappy

    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

  2. #2
    Guest
    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

  3. #3
    Guest
    Try:
    Code:
    Shell "rundll32 keyboard,disable"

  4. #4
    New Member
    Join Date
    Aug 2000
    Location
    Austria
    Posts
    9

    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
  •  



Click Here to Expand Forum to Full Width