On Feb 11, 7:51 pm, "Cor Ligthert[MVP]" <notmyfirstn...@planet.nl>
wrote:
Quote:
Kimi,
>
You should always know the steps that can be taken.
>
For a progress bar you need:
The beginpoint
The steps
The endpoint
>
Whatever it is.
>
As soon as you don't know that you can better use an AVI or an Animated Gif
as you see often in Windows OS instead of some pseudo information (from
which I have often the idea that I am looking at in Vista)..
>
Just my idea.
>
Cor
Cor,
Unfortunately the problem is not to know the exact end/begin points.
However in some cases you can move progress bar indicator forward, an
example i've found using for-next loop:
Dim i As Integer
For i = 0 To UBound(RandArray)
RandArray(i) = Int(Rnd() * 1000000)
TextBox1.Text = TextBox1.Text & RandArray(i) & vbCrLf
ProgressBar1.Value = i
Next i
which fills the array with random numbers and displays them in a
textbox by the time progress bar is moved forward till all the array
is filled.
More samples are welcome with progress bar :-)