Mr_Bach
asked on
C# Mouse point place?
I have 1 textbox with tabIndex =0;
I have 1 button, how can I do to move mouse point to tabIndex =0 when I click the button?
Please help me.
I have 1 button, how can I do to move mouse point to tabIndex =0 when I click the button?
Please help me.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I agree with Aleksei_Malkov.
Also, moving the mouse cursor without input (I'm not counting the button click here) is not user friendly. As a user I should control the mouse position, not the application.
Also, moving the mouse cursor without input (I'm not counting the button click here) is not user friendly. As a user I should control the mouse position, not the application.
Position property.
Cursor.Position = new Point (X, Y);
If you'd like to switch focus - just call textBox.Focus() method