Adding a progress bar to your vb.net application
Friday, July 11th, 2008In your design view drag over the progress bar from the tool menu to your form. Name your bar ProgressBar.
Click in your progress bar twice and you will enter code view. Then enter the following code:
If e.CurrentProgress < e.MaximumProgress Then
If ProgressBar.Value >= ProgressBar.Maximum Then
ProgressBar.Value = ProgressBar.Minimum
Else
ProgressBar.PerformStep()
End If
Else
ProgressBar.Value = ProgressBar.Minimum
End If
Change ProgressBar to the name of your toolstrip item name if it is different. This is the code to make your progress bar function in your windows application. Depending on your application you may need to add additional code to update string(s) if they change when the form is fully loaded or completed it’s function.







