Click to See Complete Forum and Search --> : How to lock all input devices (mouse, keyboard) ?


Watz
March 14th, 1999, 04:35 PM
Hi, i got another one :)


How can i lock all input devices (mouse and keyboard) preventing

the user to do anything until the app unlocks them again ?


(First i tried to use the SetSysModalWindow - API function, but

it doesn't seem to work with Win98...)


thanks in advance :)


Watz

Andy Tilley
June 24th, 1999, 04:55 PM
Presumably, you want to prevent users from clicking and typing on a form whilst some processing is going on. I'd suggest a simple

Me.Enabled = False
'Do your processing
Me.Enabled = True

would do the trick.