Progress bar - No activity

  • Thread starter Thread starter adh
  • Start date Start date
A

adh

During project loading I display a splash (welcome) form with a progress
bar triggered by a timer (on this form). The loading of the project and
data, is done Not by this form, but by a hidden Main form which, at the
end unloads the splash form and shows itselve.
The problem is that both the progress bar and even a gif file are
freezed and not showing any life. Only at the second when I close the
splash form it shows something before vading away.

How do I make everything move on screen?


Thanks, adh
 
How are you showing the splash screen?

Are you using 'ShowDialog()'? If so, change it to 'Show()' & see if that
corrects it

Crouchie1998
BA (HONS) MCP MCSE
 
Hello, adh,

I suspect that you may need to put a few strategically placed
Application.DoEvents within the code of the hidden main form that is
doing the loading.

Cheers,
Randy
 
ADH,

Why are you making it yourself so difficult.
Why not use two panels. Docked to full.

Make visable (and not visable the other) the one with your progressbar while
loading (and do that than in the same time as your activities in the
activated event with a static boolean switch, to be sure to do it once).

If that is ready you can make visable your actual panel. In my idea gives
that the same effect as you are now telling however with much less work (and
trouble).

I hope this helps,

Cor
 
Back
Top