App Startup

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..
 
M

Miro

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top