Console application leaves cmd.exe size
3 answers
This works for me in C #.
namespace CSharpTest
{
class Program
{
static void Main(string[] args)
{
System.Console.WindowHeight = 50;
System.Console.WindowWidth = 100;
System.Console.BufferHeight = 6000;
System.Console.BufferWidth = 100;
}
}
}
After running the program, I can change the height of the window and make it narrower as before. I can't make it wider, but then I couldn't either.
+1
source to share