Progress bar - No activity

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
 
M

msnews.microsoft.com

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
 
R

R. MacDonald

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
 
C

Cor Ligthert [MVP]

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
 

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