Your solution should have a Program.cs file, this file contains:
static void Main()
{
}
You will notice that in this method there is something like:
Application.Run(new Form1());
Your form is actually running here, so you can do your own Main()as follows:
static void Main(string[] args)
{
if(args.Length < 1)
{
Application.Run(new Form1());
return;
}
else
{
}
}
, , . , , .