CurrentMouse Position

  • Thread starter Thread starter bic
  • Start date Start date
B

bic

Ok I have tried everything I can think of, but I can NOT get the
correct current mouse position. I heard it works fine on the emualator
but on My Dell X3i I can never actually get the current position of
the cursor.

I have tried
control.MousePosition -> wrong half of the time.
GetCursorPos -> always return 0
OnMouseDown with e As MouseEventArgs e.X/e.Y wrong half the time.

Anyone got something that work?
 
Can you describe what errors you are seeing using the Control.MousePosition
property, I have used this in a few scenarios and it has worked as expected.

Peter
 
Peter Foot said:
Can you describe what errors you are seeing using the Control.MousePosition
property, I have used this in a few scenarios and it has worked as expected.

Peter

This is no error. It's just the MousePosition is wrong about 50% of the time.
 
bic said:
"Peter Foot [MVP]" <[email protected]> wrote in message

This is no error. It's just the MousePosition is wrong about 50% of the
time.

You do remember that MousePosition is in screen coordinates, which are
different from control client coordinates, don't you?
 
You do remember that MousePosition is in screen coordinates, which are
different from control client coordinates, don't you?

Yes.. The MousePosition is correct sometimes and incorrect other
time.. there is no consistency at all. Sometimes it gives the correct
coordinate and sometimes it doesn't.. really weird.. I have heard this
problem exists on some PDA but not necessary on the emulator.
 
Back
Top