Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Showing a progress dlg in VB?

Status
Not open for further replies.

SPRobson

Programmer
Jul 5, 2001
18
0
0
EU
Hi All

I've a bit of VB code (a For loop) that takes some time to run (about 2-3 mins typically) and I want to show a progress dialog (i.e. a small dialog with a progress bar and message) whilst this code runs. Is this possible? If so, how do I do it?
 
Hi,

Add the common controls to your project (MSCOMCLT.OCX).
Now you can add a progressbar to your form.
Set the progressbars max property to initialise and then the value property as you go along.

Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
Hi

Is there a VB equivalent of the CProgressCtrl in C++?
 

Yes. As I wrote above.
Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top