Answers for "c# forms costum cursor"

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
1

cursor position c#

int maxKolom = Console.WindowWidth - 1;
for (int i = 0; i < 10; i++) {
    Console.SetCursorPosition(i, i);
	Console.Write("\");
    Console.SetCursorPosition(maxKolom - i, i);
	Console.Write("/");
}
Posted by: Guest on January-05-2021

C# Answers by Framework

Browse Popular Code Answers by Language