Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15472

VS 2019 progressbar math

$
0
0
I am trying to process files in a folder.

I use a progressbar to show the progress.

i = number of documents found

Code:

              ToolStripProgressBar1.Maximum = i
                ToolStripProgressBar1.Step = i / 100
                If ToolStripProgressBar1.Step < 1 Then
                    ToolStripProgressBar1.Step = 1
                End If

I noticed that when ToolStripProgressBar1.Step = i / 100 is less then 1 the progressbar doesn't update
So I try to make the step = 1 but I don't think that will work.

Anyone good in math?

Viewing all articles
Browse latest Browse all 15472

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>