Constraint the mouse

  • Thread starter Thread starter Trecius
  • Start date Start date
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
 
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
 
Back
Top