Mouse position
-
Al of you people wil know how to get the position of the mouse pointer in a textBox. But mij problem is i need to get my mouse pointer to a position given in 2 textboxes. Can anyone tell me how to do this because i don't have a clue The underdog
-
Al of you people wil know how to get the position of the mouse pointer in a textBox. But mij problem is i need to get my mouse pointer to a position given in 2 textboxes. Can anyone tell me how to do this because i don't have a clue The underdog
Hopefully I got it right that you want to move the mouse cursor to a position, whose coordinates are given in two textboxes. The following code snippet assumes that only numbers can be entered into both textboxes, cause otherwise the Parse methods might throw an exception.
int x = int.Parse(textBoxX.Text);
int y = int.Parse(textBoxY.Text);
System.Windows.Forms.Cursor.Position = new Point(x, y);