Solved

Status Bar Steps

Posted on 2011-09-30
1
228 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

12 Experts available now in Live!

Get 1:1 Help Now