If you want all the controls to be disabled. which does the same purpose as putting off Keyboard and Mouse..
ThisForm.SetAll("Enabled",.f.)
But the forms click or rightclick or in short events of the forms will work, while all the controls, command buttons and textboxes will be disabled by the above command.
Disabling the mouse and keyboard activity is not a right approach, since it is like freezing the computer and you cannot get back at all, unless that is the process in a sequence of events in your code.
This will block both mouse and keyboard. (Carefull when you test it, make sure you unblock it also:
Code:
DECLARE INTEGER BlockInput IN user32 INTEGER fBlockIt
BlockInput(1) && This will block them
** Do some processign here
BlockInput(0) && This will unblock them
Mike Gagnon
If you want to get the best response to a question, please check out FAQ184-2483 first.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.