?
Solved

Status Bar Steps

Posted on 2011-09-30
1
Medium Priority
?
234 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

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…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

765 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