Solved

Status Bar Steps

Posted on 2011-09-30
1
229 Views
Last Modified: 2012-05-12
I would like the progress bar to update completely when I transfer a file. currently the parameters:
Minimum =0
Maximum =100
setp=20

The problem I have same 10 files to transfer the status bar will move all the way down and look like it full, however if I only have  1 file selected it will only move the 20 steps
Dim cnt As Integer  


 For intloop2 = 0 To SelectedFile_Arr.Count - 1


 cnt += 1
            progBar.Value = cnt
            Application.DoEvents()

next

Open in new window

0
Comment
Question by:cmdolcet
1 Comment
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 125 total points
ID: 36893303
Set it as a fraction related to the total
progBar.Value = CInt((intloop2)/(SelectedFile_Arr.Count - 1)*progBar.Maximum)

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
A short film showing how OnPage and Connectwise integration works.

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now