473,322 Members | 1,690 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

ProgressBar for Recursiv function

hello together!

I have a function in my programm set runs recursiv through a directory
and lists all files in the directory, subdirectory, just everything.
my issue is now, how do i manage the progressbar
that it shows me the current status from 0 - 100%.
i tried to count all files and do it in this way but it isnt
fast enough, because in the end i run allready through the directory
and i dont want to do it two times.

does anyone have an idea?

thank you in advance.
marc van den bogaard
Nov 16 '05 #1
1 1381
"Marc van den Bogaard" <ma**********@gmx.de> wrote:
I have a function in my programm set runs recursiv
through a directory and lists all files in the directory,
subdirectory, just everything.
my issue is now, how do i manage the progressbar
that it shows me the current status from 0 - 100%.
i tried to count all files and do it in this way but it isnt
fast enough, because in the end i run allready through
the directory and i dont want to do it two times.


Obviously, you can't calculate a percentage unless you know the total.
You could just count the directories first, and then show two progress
bars: one for the directories, and another for the files in the
directory currently being scanned.

If you really don't want to count anything first, I suppose you could
show an animated symbol (like the "flying documents" when copying
files) to indicate that something is happening.

P.
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: needin4mation | last post by:
Please consider: foreach (ListViewItem item in listViewFiles.Items) { // Display the ProgressBar control. pBar1.Visible = true; // Set Minimum to 1 to represent the first file being copied....
2
by: Bill Nguyen | last post by:
How can I create a shared function to display process progress that can be called from other routines within an application? Any example that I can follow? Thanks Bill
2
by: Steven Smith | last post by:
is it possible to change the color of the step blocks from the default blue which are incremented in the progressbar control or is this goverened by windows ? I tried ...
4
by: sivamoorthy | last post by:
how to use a progressbar in a one cpp file but defined in another header file. the function in which i am using is a static member function. how to use the progressbar inside the function ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.