Hi,
I need to implement a login form in win form application.
My scenario is :- Login form should open first--> with correct user name and password user should be able to login--> then another page should open and login page should get closed.
Problem is:- Since log in page is the first page and it need to get put in Main() function like below.
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new login());
}
After opening another form by formname.show() If I get exit from loginpage whole application will get exit.
Please how I can open another form without application exit and login form as my first form ?
Login form in winform
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Dipa AhujaRank #1,168 · 1.5K reputationPosted May 2, 2010, 8:45 AM EDT
Deepak Goyal42 reputationPosted May 2, 2010, 10:47 AM EDT
I have tried other way by that I am able to do that.
Multiple Subsequent Main Forms in C# Apps[^]