I've got the following error:
Program.cs(18,33): error CS0246: The type or namespace name 'Form2' could
not be found (are you missing a using directive or an assembly reference?)
And in the Solution Explorer, I see Form2.
Any ideas?
"Duggi" <Du***************@gmail.comescribió en el mensaje
news:86**********************************@56g2000h sm.googlegroups.com...
In the Program.cs class there would be Main function something like
below
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(fals e);
Application.Run(new Form1());
}
Change the Application.Run(new Form1()); line to reflect to the login
form.... something like
Application.Run(new LoginForm());
This should work.
Thanks
-Cnu
On May 29, 2:44 am, "Jordi Maicas" <jmaycasNOS...@hotmail.comwrote:
Hello!!
I've just started a new windows form in C#, but when I finished my Form1,
I
remembered that I would like to add a new form to login to the App.
So, I need to load first a Form2, and if I login succesfully, show Form1.
¿How could I change the App, to load Form2, and not Form1?
Thanks.