c# set cursor pos
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("/");
}
0
0
use System.Runtime.InteropServices;
[DllImport("user32.dll")]
static extern bool SetCursorPos(int X, int Y);
Thank you!
0
0
Are there any code examples left?
New code examples in category C#