?
Solved

Proggress Bar Problem

Posted on 2003-03-14
4
Medium Priority
?
168 Views
Last Modified: 2010-04-07
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
Comment
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
  • Learn & ask questions
  • 3
4 Comments
 
LVL 2

Expert Comment

by:Jacamar
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

by:
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

Private Sub Form_Load()
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

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

0
 
LVL 1

Expert Comment

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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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

762 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