Mouse

  • Thread starter Thread starter Wapr
  • Start date Start date
Wapr said:
Hi,

How can I limit to movement of the cursor on my form to a specified
rectangle?

thanks

Only while the mouse button (left) is initially pressed over your form, and
held for the duration of the limited movement. Once the user releases the
mouse button, they are free to move anywhere over the screen.
 
Hi,

As Wapr said: you can limit the mouse cursor movement with System.Windows.Forms.Cursor.Clip = <rectangle>.

----- Julie wrote: ----

Wapr wrote
Only while the mouse button (left) is initially pressed over your form, an
held for the duration of the limited movement. Once the user releases th
mouse button, they are free to move anywhere over the screen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top