Home All Groups Group Topic Archive Search About

Progress bar - No activity

Author
19 Feb 2006 3:34 PM
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

*** Sent via Developersdex http://www.developersdex.com ***

Author
19 Feb 2006 4:45 PM
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
Author
19 Feb 2006 9:38 PM
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


adh wrote:
Show quoteHide quote
> 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
>
> *** Sent via Developersdex http://www.developersdex.com ***
Author
19 Feb 2006 10:13 PM
vbnetdev
I need code to help.

--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com



Show quoteHide quote
"adh" <a**@devx.com> wrote in message
news:u2fiHoWNGHA.3164@TK2MSFTNGP11.phx.gbl...
> 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
>
> *** Sent via Developersdex http://www.developersdex.com ***
Author
20 Feb 2006 10:13 AM
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
Author
21 Feb 2006 7:35 AM
Cor Ligthert [MVP]
ADH,

Because that I saw more question of this have I made a sample and put on our
site.

It is brand new, you can try it.

http://www.vb-tips.com/default.aspx?ID=e712f49d-7f54-4f59-945f-cfc96c6ca913

I hope this helps,

Cor

Show quoteHide quote
"adh" <a**@devx.com> schreef in bericht
news:u2fiHoWNGHA.3164@TK2MSFTNGP11.phx.gbl...
> 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
>
> *** Sent via Developersdex http://www.developersdex.com ***