this is my code:
private void MoveCursor(int x, int y) { // Set the Current cursor, move the cursor\'s Position, // and set its clipping
I suggest you this code
var pc = new PointConverter(); var pt = new Point(); pt = (Point)pc.ConvertFromString(string.Format("{0}, {1}",x,y)); cursorMouse.Position = pt;
link : http://msdn.microsoft.com/en-us/library/system.drawing.pointconverter.aspx