Disabling mouse movement and clicks altogether in c#

Posted by ThaNerd on Stack Overflow See other posts from Stack Overflow or by ThaNerd
Published on 2010-04-23T13:00:45Z Indexed on 2010/04/23 13:03 UTC
Read the original article Hit count: 278

Filed under:
|

At work, i'm a trainer. I'm setting up lessons to teach people how to "do stuff" without a mouse... Ever seen people click "login" textbox, type, take the mouse, click "password", type their password, then take the mouse again to click the "connect" button beneath ?

So i'll teach them how to do all that without a mouse (among many other things, of course)

At the end of the course, i'll make them pass a sort of exam.

So i'm building a little wizard based app in which i present some simili-real-life examples of forms to fill in, but i want to disable their mouse programatically while they do this test.

However, further in the wizard, i'll have to let them use their mouse again.

Is there a -- possibly easy -- way to just disable the mouse for a while, and re-enable it later on?

I'm on C# 2.0, programming under VC# 2k5, if that matters

© Stack Overflow or respective owner

Related posts about c#

Related posts about mouse