Solved

PROGRESS BAR

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now