Displaying a progress bar

B

Ben dotNet

I want to have a form that, when it opens, a lengthy processed is started.
I'll show the progress of it by a progress bar on the form. But what is
happening is:

-The form begins to load
-then the process is started
-only after the process is completed does the form completely show itself.
The progress bar is already at 100% (complete).

How do I completely load, and display the form and progress bar (at 0%
complete), and THEN kick off this lengthy process?

Thanks,
--Ben
 
H

Hermit Dave

Ben,

I have used progress bar to an extent in past and i used it again a few days
back to show progress copying the files off a directory
what i have is a method call to update the status from within the copy
process.
that way it is always called and i just set the current value for the
progress bar.

i did try using timer object and to do a query at specified time intervals.
but timer event is not handled if you are using I/O operations or any
intensive task
when i tried using the time i also have a very similar out put... no
progress being reported and once its done processing... a direct jump to
100%

let me know if you need a code snip to show you how i am using it.
 
H

Herfried K. Wagner [MVP]

* "Ben dotNet said:
I want to have a form that, when it opens, a lengthy processed is started.
I'll show the progress of it by a progress bar on the form. But what is
happening is:

-The form begins to load
-then the process is started
-only after the process is completed does the form completely show itself.
The progress bar is already at 100% (complete).

How do I completely load, and display the form and progress bar (at 0%
complete), and THEN kick off this lengthy process?

<ttp://www.codeproject.com/cs/miscctrl/progressdialog.asp>
 
B

Ben dotNet

I am developing in VB. Can any of you supply any code to demonstrate the
Worker Thead examples talked about in these threads using VB?

thanks
--Ben
 
B

Ben dotNet

I am developing in VB. Can any of you supply any code to demonstrate the
Worker Thead examples talked about in these threads using VB?

thanks
--Ben
 

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