Constraint the mouse

T

Trecius

Hello, Newsgroupians:

I have a window, and I would like to constrain the mouse to a triangle in
that window when a certain condition exists. I've tried overriding
OnMouseMove and adding an event handler for MouseMove, but the MouseEventArgs
X and Y are "get" properties, or readonly properties. How can I constrain
the mouse to the triangle?

Thank you,


Trecius
 
T

Trecius

I think I figured it out...

It should be...

Cursor.Position = ...

This should work unless anyone has anything else to add or another approach.


Trecius
 

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

Top