VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Block Mouse and keyboard

by Khaldoun Baz (12 Submissions)
Category: Windows System Services
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Fri 8th October 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Block Mouse and keyboard

Rate Block Mouse and keyboard



Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Sub Form_Activate()
    DoEvents
    'block the mouse and keyboard input
    BlockInput True
    'wait 10 seconds before unblocking it
    Sleep 10000
    'unblock the mouse and keyboard input
    BlockInput False
End Sub


Download this snippet    Add to My Saved Code

Block Mouse and keyboard Comments

No comments have been posted about Block Mouse and keyboard. Why not be the first to post a comment about Block Mouse and keyboard.

Post your comment

Subject:
Message:
0/1000 characters