Answers for "set cursor position c# winforms"

C#
1

c# winforms textbox cursor position

//If you want to put the cusror at the end of text use this:
TextBox1.SelectionStart = TextBox1.Text.Length;
TextBox1.SelectionLength = 0;
// Or use this for custom location int CustomIndex 
TextBox1.SelectionStart = CustomIndex;
TextBox1.SelectionLength = 0;
Posted by: Guest on August-30-2021
0

c# set cursor pos

use System.Runtime.InteropServices;

[DllImport("user32.dll")]
static extern bool SetCursorPos(int X, int Y);
Posted by: Guest on August-08-2021

Code answers related to "set cursor position c# winforms"

C# Answers by Framework

Browse Popular Code Answers by Language