App Startup

  • Thread starter Thread starter Michael White
  • Start date Start date
M

Michael White

OK, here's what I need to do...

Start my app from Sub Main()
In Sub Main(), display a login dialog. This dialog creates a singleton User
object which contains all the code necessary to authenticate. The user
object is global to the entire application. This will need to loop until the
user logs in or cancels.
If the login succeeds, I need to display a splash screen while the app is
performing the necessary startup processes. The user may cancel the login,
in which case I need to exit the app.
If the startup processes complete, then I need to load the main MDI parent
form and unload the splash. If they fail, I exit the app.

What's the reccommended way of going about this?

Thanks..
 
The way I did this..and i dont know if it is right... is like this:

I have an MDI form...

In the begining I have a splash screen display.

Then the main MDI form displays.
On the MDI form I put a timer, and i set it to 1 second and "Enabled".
On the 1 second hit of the timer, i disable the timer and display my login
screen showmodal.
That way, my mdi form is displayed - and is my main form, and my login form
is now part and called from the main form.

-Curious as to how others have done it.
My goal was to have the MDI app open when the Login screen is open, so if
the guy clicks cancel on the Login screen,
he has the BASIC - UN-LOGGED IN menu in the main MDI app.


Miro
 
Back
Top