C
Charlie Brown
I have written some custom controls that can dragged around a container
control. When the controls reach the edges of the container control,
they stop moving. The mouse continues to travel beyond the border of
the control. When the mouse direction of travel changes, the control
then moves accordingly (I tie the movement of the control to the
MousePosition delta). Is there some way to magnet the cursor to the
control, so when the control stops moving the mouse does the same?
control. When the controls reach the edges of the container control,
they stop moving. The mouse continues to travel beyond the border of
the control. When the mouse direction of travel changes, the control
then moves accordingly (I tie the movement of the control to the
MousePosition delta). Is there some way to magnet the cursor to the
control, so when the control stops moving the mouse does the same?