Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to block mouse and keyboard 1

Status
Not open for further replies.

Gert

Programmer
Apr 9, 2000
240
DO
Hi, all, How could i block the mouse and keyboard??


Thanks
 
Hi Gert,

Are you trying to use a touchscreen monitor ?

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.

:)

____________________________________________
ramani - (Subramanian.G) :)
When you ask VFP questions, please add VFP version.
 
Gert

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.
 
Thank a lot mgagnon and ramani
i´m not trying to use a touchscreen monitor

I will try mgagnon option,

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top