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.
--
Miha Markic [MVP C#] - RightHand .NET consulting & development
SLODUG - Slovene Developer Users Group
www.rthand.com
"Fabio Negri Cicotti [MCP]" <ci*****@hotmail.com> wrote in message
news:Ov**************@TK2MSFTNGP09.phx.gbl...
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,
--
Fabio Negri Cicotti
Software Engineer