I need help creating an application with a locked window size. I can set the size but not lock it or change the position. Also, the solution could be is to make the command that sets the window size run at the same time as everything else.
This is the code I have:
using System;
namespace WindowSizeSetter
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Press enter to start fullscreen.");
Console.Read();
SizeOfScreen();
Console.ReadKey();
}
private static void SizeOfScreen()
{
Console.SetWindowSize(172, 41);
}
}
}