When a new Windows Forms Project is created , you would see the sourcecode similar to the below sample in the Program.cs
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace WindowsFormsApplication1 { static class Program { [STAThread] static void…