boes Posted December 17, 2002 Posted December 17, 2002 Hello again, in VB6 there is a special form called splashscreen. How can I do this in DOTNET as there doesn't seem to be such a screen as in VB6? I want to show a splashscreen and on that screen I want to display some texts indicating that I'm connecting to my databases. When that is done, my main form has to be showed. The problem till now was that as soon as my mainform was displayed my application ended. Does someone have an idea how this is possible and how I can prevent this? I'm not working with MDIforms. Quote
Moderators Robby Posted December 17, 2002 Moderators Posted December 17, 2002 A Splash Screen is just a form, create a new form and show it . (ShowDialog) Quote Visit...Bassic Software
*Experts* Nerseus Posted December 18, 2002 *Experts* Posted December 18, 2002 If you've got two forms, a splash form and main form, make sure your Main function is instantiating the main form. The main form can then show the splash screen (non-modally or else the main form won't continue running) and then close the splash screen once the main form has made its connection. You can set the splash screen to be "always on top" so that it appears in front of the main form. Since it's non-MDI, you could probably get away with hiding the splash screen in the main form's Activated event (which fires when the main form is being shown). This should occur after all your database work is done, I would assume. -nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
boes Posted December 18, 2002 Author Posted December 18, 2002 Thanks, I'll try it and let you know if it worked Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.