Solved

PROGRESS BAR

Posted on 2000-03-14
2
244 Views
Last Modified: 2010-05-02
HOW TO ACTIVATE OR USE PROGRESS BAR IN THE PROJECT? CAN ANY ONE TELL ME WITH SMALL SET OF CODE...?

THANKX IN ADVANCE....
0
Comment
Question by:nsmanikandan
[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
2 Comments
 

Accepted Solution

by:
d_hottes earned 50 total points
ID: 2617042
1. Add include the Microsoft Windows Common Controls in your App, by choosing them from the Dialog "Components" (Menu Project Components or press Strg-T)

2. Then drop the Progressbar from the toolbox into a form and name it "ctlProgress"

3. Now you can set the Min and Max values of the control (default is 0 and 100)

4. Use the following code to set the value

ctlProgress.Value = X

where X is the Value you want to set.

;-) Dirk

0
 
LVL 20

Expert Comment

by:hes
ID: 2617197
Here is a simlpe example of using the progress bar

Private Sub Form_Load()
Form1.Show
DoEvents
Dim counter, x
x = 100000
ProgressBar1.Min = 0
ProgressBar1.Max = x
For counter = 1 To x
ProgressBar1.Value = counter
Next counter


End Sub
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Saving history changes to sub form 4 52
Using "ScreenUpdating" 6 84
vbModal 12 66
Zip Folders Using Chilkat Routines 1 77
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

726 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