in c#, i want to set forum 2 as startup form from program.cs, but when i try to change the code piece below i get such an error
before changing:
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
after changing:
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form2());
}
the error is : The type or namespace name 'Form2' could not be found (are you missing a using directive or an assembly reference?)
All my changes are to write "Form2" instead of "Form1"