Form completely closed.

  • Thread starter Thread starter Fabio Negri Cicotti [MCP]
  • Start date Start date
F

Fabio Negri Cicotti [MCP]

Hi all.

I'm getting a problem with forms. I have a tradictional scene where the
first Form comes up with the login and if the user logs in, get the second
form with the whole system. Basic doesn't it? So what I want to do is, when
the user logs in, the login form is completely closed (not hidden) and calls
the second form passing the parameter "user loged". How can I do it?


Kind regards,
 
Why not turn it around?
Create the second form and from there call the login form.
And if the login is successfull send OK back to the second form
otherwise send NO (or smth. like that...).

saso
 
Hi Fabio,

Before Application.Start, do your login, close the login form and if login
succeeds then start the application with
Application.Run(new YourMainForm());

instead of using login form.

The application will then run as long as this form is open.
 
Back
Top