Click to See Complete Forum and Search --> : How to display progress bar
Shalini Shikha
October 17th, 1999, 12:38 PM
In my VB program, I am executing another program and I want to display a progress bar while this program is executing its routines. So, how do you display a progress bar like the one which appears when copying a file or doing a setup.
wayne
October 17th, 1999, 05:46 PM
If you are using VB 5 or 6 right click on the controls form and select components. Select Microsoft Windows Common Controls. This will put the control on the controls form. Put in on your form. Set the Min property to you lowest count and Max to your higest count. Then as you go through the loading increment the count and put that value in. ie.
ProgressBar1.Min=0
ProgressBar1.Max=100
for x=0 to 100
ProgressBar1.Value = x
next
Hope this is what you wanted ;-)
Chris Eastwood
October 18th, 1999, 02:37 AM
If you want a progress bar and some animated windows then take a look at :
http://codeguru.developer.com/vb/articles/1638.shtml
The code can be simply dropped into your project (providing you have the correct components / references setup).
Chris Eastwood
CodeGuru - the website for developers
http://codeguru.developer.com/vb
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.