splash form, how

B

Bob Dufour

Ho do you do a simple splash form in .NEt that does not stay on screen
behind the next form that is shown

If I do
Sub main()
Dim mysplash as new frmsplash
mysplash.show
Dim MyOtherfrm as new frmOther
MyOtherfrm.showdialog
end sub

the splash form stays on screen although hidden behind the other form. If
the other form is minimized the splash form will still be seen. I want it to
be totally gone after the myOtherfrm is finished loading.

This was easy in vb6 but in .NET, whew :-(

Any help greatly appreciated.

Bob
 
H

Herfried K. Wagner [MVP]

* "Bob Dufour said:
Ho do you do a simple splash form in .NEt that does not stay on screen
behind the next form that is shown

If I do
Sub main()
Dim mysplash as new frmsplash
mysplash.show
Dim MyOtherfrm as new frmOther
MyOtherfrm.showdialog
end sub

the splash form stays on screen although hidden behind the other form. If
the other form is minimized the splash form will still be seen. I want it to
be totally gone after the myOtherfrm is finished loading.

<http://www.google.de/groups?selm=#[email protected]>
 
B

Bob Dufour

Thanks Shannon,
The code looks good but it just does NOT produce the desired result. i.e. to
make a splash screen appear almost immediately as the app starts.
The reason it does not work is that the splash screen is shown in the main
form's load event and that event occurs well AFTER the form goes through
it's initialize call. In our case we have a lot of custom controls,
including Component one and Infragistics custom controls that seems to be
doing a lot of work in the initialization process of the form and this takes
time, so putting the call to open a splash screen at the beginning of a form
load event in our case takes 30 seconds before the splash screen is
displayed, which makes it totally useless.

If anyone has any ideas or experience on how to solve this, I would really
appreciate hearing from them,

Thanks,

Bob
 
C

Chris Dunaway

Ho do you do a simple splash form in .NEt that does not stay on screen
behind the next form that is shown

Alter your code just a little (this is one way):

Sub main()
Dim mysplash as new frmsplash
mysplash.show
Dim MyOtherfrm as new frmOther
MyOtherfrm.Show
mysplash.Close
mysplash.dispose
Application.Run()
end sub
 
S

Sueffel

Chris Dunaway said:
Alter your code just a little (this is one way):

Sub main()
Dim mysplash as new frmsplash
mysplash.show
Dim MyOtherfrm as new frmOther
MyOtherfrm.Show
mysplash.Close
mysplash.dispose
Application.Run()
end sub

--
Chris

To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.

To modify on what Chris has just said, in the "New" procedure of the main
form, have a small timer that will close the Splash form, and pass the
splash form object to it. Then, however long the main form takes to do
it'sthing, the splash will stay right there untill it's loaded.

Just something Idid to add "Spice" to one of my appz.

Sueffel
 
A

Ayaz Ahmed

Hello,

Hide splash form also when your splash form loading succesfully.


Warm Regards,

Ayaz Ahmed
Software Engineer & Web Developer
Creative Chaos (Pvt.) Ltd.
"Managing Your Digital Risk"
http://www.csquareonline.com
Karachi, Pakistan
Mobile +92 300 2280950
Office +92 21 455 2414
 

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