Splash screen

  • Thread starter Thread starter New
  • Start date Start date
N

New

I have a form that is slow to load. I would like it to load in
backround while a splash screen show. How would I do that?
 
I apologize. My newsreader download all messagesa since the begining
of Oct and I did not see one that adressed the issue . All seem to
cover keeping the screen open a certain amount of time. My problem is
that the main form is not loading in background and still takes the
same amount of time to load after thesplash screen disappears.
Specfically it takes a while the "draw" the controls on the screen

any help is appreciated
 
You might be able to set the transparancy to 100%

Show the form,

so it is invisible, and then after ur splash screen is done, just set the
transparance to 0 again.

Not sure if that would work or not, - if the same amount of processing time
is taken to make everything "un-see thru".

Miro
 
Hi there,

With that in mind you have to appreciate that the main thread will be
locked during the startup process. In order to display the splash
successfully it needs to be displayed in another thread, this way it will be
given the time to be able to refresh correctly once displayed and the main
form will continue to load in the background.

Personally I would not use the built in application framework. This has
issues with McAfee's shoddy firewall and if you specify that you want a
single instance application the firewall has the capability to make it
crash. Basically they used TCP sockets for remoting rather than IPC, for
some strange reason or another.

Anyway, it's not that difficult to make your own and well recommended.

Nick.
 
It sounds like you are displaying your splash screen modally which
temporarily stops executing the startup code until you dismiss it. A splash
screen does not require a separate thread you simply can't have it show and
wait for input.

Cor was simply pointing out (in his message) that rather than download the
newsgroup messages (which have a limited lifespan) you can search Google and
find the popular newsgroup messages archived there just about forever.

Are you using a Main() function to start the app or have you set a form to
start? Personally I recommend against using a form as you lose some
control. Granted you might be able to jump through some hoops and make it
look the same but it is much more straightforward to start the app through a
Main procedure. When you're ready to simply instantiate and display your
main form.
 
Back
Top