show windows in pocket pc



Hello!
I have a simple problem in my application.

I have three form's:
Principal
Login
Company

In form Principal I invoke the form Login. In Login I validate user and password and send the answer to form Principal. Soon in Principal I invoke form Company if login and password correct.

Now, going to the question:
When I press the button "login" in the form Login (putting user and password correct) it close and open form Company however while the form Company load, nothing appers in screen. The Principl form simply not appers...I need that it be visible always that another form be loading...

Code:
principal.showDialog();

// select the option of menu "login"
Login log = new Login();
log.showDialog();
// here, nothing appers in screen. Seems that the application exit
if (log.MakeLogin)
{
Company comp = new Company();
comp.showDialog();
}

Thank'you

--------------------------------
From: Matheus Torbis

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>X7EUo5eu/kOkrBTe8FdyYw==</Id>
.