Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MouseDown, MouseUp - wrong mouse position?
12-07-2011, 05:31 PM
Post: #1
MouseDown, MouseUp - wrong mouse position?
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.
Quote this message in a reply
12-08-2011, 12:35 AM
Post: #2
RE: MouseDown, MouseUp - wrong mouse position?
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.
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)