Set mouse position?

  • Thread starter Thread starter Tomppa
  • Start date Start date
T

Tomppa

How do I do this in the CF 2.0?
Windows.Forms.Cursor.Current.Position = New System.Drawing.Point(225, 105)

Thanks
 
Umm... Windows CE devices usually don't have a cursor visible except for the
editable controls (TextBox, etc..). In this case you can try to P/Invoke
into SetCursorPos.
 
Thanks, I'll give this a try.

My platfororm is baiscally a WinCE 5.0 thin client with full mouse support.
 
Works great

[DllImport("coredll.dll", SetLastError = true)]

static extern bool SetCursorPos(int X, int Y);

SetCursorPos(Screen.PrimaryScreen.Bounds.Width,0);
 
Back
Top