When I run my project, fmPrincipal is always opened, however, I decided to create a fmLogin to be displayed first and the user to log in.
How do I configure fmLogin to be displayed first?
When I run my project, fmPrincipal is always opened, however, I decided to create a fmLogin to be displayed first and the user to log in.
How do I configure fmLogin to be displayed first?
In your Main()
method, call Application.Run(new fmLogin());
, passing as a parameter a new instance of fmLogin
.
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new fmLogin());
}
So, the application will start with fmlogin()
.