Showing Progressbar at Load Time

  • Thread starter Thread starter Dinesh Jain
  • Start date Start date
D

Dinesh Jain

Hi all ,

As we run the .NET exe, first of all it loads
all the necessary system dlls and user dlls at load
time and then displays the main form of the application.
But in between loading these dlls and displaying the
main form , it takes some good amount of time.
So I want to display progress bar in between.
is it possible?

Please help,
Thanks in advance,

-Regards,
Dinesh
 
Hi Dinesh,

I would imagine that any Progress Bar would be the new Main Form
and would thus have the same delay.

One possible workaround is to have a Progress utility which has
the name of your Exe and immediately calls the actual app (using
Process.Start). Then, while the actual app is loading it can display
the Progress Bar. On loading, the Main Form would call the Progress
utility to say "Ok, I'm ready". The Progress utility would then note
how long the app loading took and store it a list somewhere. Each time
it ran it could use the list of load times to work out how to more
accurately scale the progress indicator.

Regards,
Fergus

ps. If you write it, could you send me a copy ? :-)
 
Hello,

Dinesh Jain said:
As we run the .NET exe, first of all it loads
all the necessary system dlls and user dlls at load
time and then displays the main form of the application.
But in between loading these dlls and displaying the
main form , it takes some good amount of time.
So I want to display progress bar in between.
is it possible?

A "marquee" progressbar on a splash screen?

http://groups.google.de/[email protected]

HTH,
Herfried K. Wagner
 
Back
Top