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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable the mouse

Status
Not open for further replies.

Daniaa

Programmer
Jan 2, 2001
3
BO
I have an application in which I only want to use the keyboard and not the mouse. So, how can I disable the mouse when the application is running???

Thanks for your answers.
 
I have never tried to disable the mouse myself, but I do know of three events under TControl that might help. Look at OnMouseMove, OnMouseDown and OnMouseUp. You could intercept the mouse activity with these and stop any unwanted mouse use.
 
Hi,

Try this one ShowCursor(False). Use this this statement in the Form Create.
The mouse is not visible on the form.
With ShowCursor(True), it is visible again. (onClose)

Steph
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top