Solved

PROGRESS BAR

Posted on 2000-03-14
2
240 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
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Question about INSTR  - need to extract data MS ACCESS query 6 56
How to make an ADE file by code? 11 87
Recommendation vb6 to vb.net or others 14 150
Excel Automation VBA 19 73
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

823 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