Forums

Full Version: MouseDown, MouseUp - wrong mouse position?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

bodeg

I registered to the dsImageDisplay mouse events - MouseUp and MouseDown.

When I press the left mouse button without moving the cursor - I do receive those events but with different locations (MouseEventArgs).
I think the offeset is consistent, and changed when the control is resized.

When pressing the right mouse button - the locations are equal.

The dsImageDisplay is docked (try also none docked) inside a tableLayoutPanel.

Any idea?
Best regards, Bodeg.

bodeg

Once I set the dsImageDisplay.Center property to false, the problem has been solved.



(12-07-2011 05:31 PM)bodeg Wrote: [ -> ]I registered to the dsImageDisplay mouse events - MouseUp and MouseDown.

When I press the left mouse button without moving the cursor - I do receive those events but with different locations (MouseEventArgs).
I think the offeset is consistent, and changed when the control is resized.

When pressing the right mouse button - the locations are equal.

The dsImageDisplay is docked (try also none docked) inside a tableLayoutPanel.

Any idea?
Best regards, Bodeg.
Reference URL's