[Solved] Remove space left after console scrollbars in C#
Finally, after a lot of head-scratching, I think I’ve solved this issue. Firstly, I had to add some additional WinAPI methods: [DllImport(“kernel32.dll”, SetLastError = true)] private static extern IntPtr GetStdHandle(int nStdHandle); [DllImport(“kernel32.dll”, SetLastError = true)] private static extern bool GetConsoleScreenBufferInfoEx( IntPtr hConsoleOutput, ref ConsoleScreenBufferInfoEx ConsoleScreenBufferInfo); [DllImport(“kernel32.dll”, SetLastError = true)] private static extern bool SetConsoleScreenBufferInfoEx( IntPtr … Read more