I'm working on a console application on C# and I need to open the console maximized. When I just hit the maximize button on the console window, it maximizes only on height and not in width. I tried to use the following code :
Console.WindowWidth = 150;
Console.WindowHeight = 61;
Which works almost as I want on my computer but gives error on some other computers. What should I do to maximize the console?
Can't with the CLR. Need to import Win32 API calls and poke your container window. The following might help.