Solved

progress bar

Posted on 1998-06-16
3
173 Views
Last Modified: 2012-05-04
id like to know how to use the progress bar with this
for i = 1 to 1000
list1.additem i
next i
i've tryed this
for i = 1 to text1.text
list1.additem i
progressbar1.value = text1.text
next i
but get an error if text1 is over 100
0
Comment
Question by:p400
3 Comments
 
LVL 9

Accepted Solution

by:
Dalin earned 20 total points
ID: 1463465
Try
Dim lPercent as Integer
lPercent = Cint(i*100/cint(text1.Text))
Progressbar1.Value = lPercent
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1463466
While Dalin's answer is the preferred solution, you can just set the progress bar's Max property to whatever the highest number you will be using.

Progressbar1.Max = 1000
0
 

Author Comment

by:p400
ID: 1463467
got it working thanks
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB6 Compile Compatibility Issue 4 102
Determine Range to Select 5 48
How to measure sizes and angles in scanned images ? 3 63
VB 6 error 5 in windows 10 but not in XP 7 56
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…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…

810 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