Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

  • *Experts*
Posted

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

"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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...