how to move cursor with C# code example

Example 1: c# change cursor

// Set cursor as hourglass
Cursor.Current = Cursors.WaitCursor;

// Execute your time-intensive hashing code here...

// Set cursor as default arrow
Cursor.Current = Cursors.Default;

Example 2: 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("/");
}

Tags:

Css Example