Solved

# Proggress Bar Problem

Posted on 2003-03-14
Medium Priority
168 Views
I can find tons of examples of how to use progress bar controls, But nowhere can I find how to add a progress bar to my form.  I am using Visual Studio 6 and it is not on my tool bar as an object.  I'm sure I will feel stupid once I find it, but could someone point me in the right direction please.

Thanks
0
Question by:cowboysnindians
[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
• 3

LVL 2

Expert Comment

ID: 8137829
You can create your own progress bar if you like.  Use a picture box.  Set a scale to the box (

Picture1.scale(-1,1.1)-(101,-0.1)

Then draw a filled rectangle from 0,0 to i,1 each time the next step is executed.  Like in your loop put i = i+1 then draw your rectangle.  Each time it loops through, it will draw the rectangle until all 100 (this number can change) are done, and the progress bar will be complete.
0

LVL 1

Accepted Solution

JH0401 earned 200 total points
ID: 8137844
Project-Components - check the Microsoft Common Controls and press apply.  Now it will appear on you tool bar.

You can control its index with a timer as follows:

add a timer & a progressbar

***********************************
Option Explicit

ProgressBar1.Min = 0
ProgressBar1.Max = 200
Timer1.Interval = 100
Timer1.Enabled = True
End Sub

Private Sub Timer1_Timer()
ProgressBar1.Value = ProgressBar1.Value + 5
If ProgressBar1.Value = 200 Then ProgressBar1.Value = 0
End Sub
0

LVL 1

Expert Comment

ID: 8137870
Sorry -- thats Microsoft Windows Common Controls
& you control the progress bar's value -- not index

0

LVL 1

Expert Comment

ID: 8137882
Project - Components - check Microsoft Windows Common Controls 6.0 (on the controls tab) & press apply
0

## Featured Post

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
###### Suggested Courses
Course of the Month9 days, 21 hours left to enroll