Adding a progress bar to your vb.net application
In 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.
Tags: PerformStep, progress bar, tutorial, vb.net, visual basic .net
Posted in Visual Basic .Net Tutorials |
2 Responses to “Adding a progress bar to your vb.net application”










August 29th, 2008 at 7:28 pm
hey i have visual basic 2008 please help me for that i cannot get it to work
im trying to get progress bar for browser
email me thanks
November 24th, 2011 at 6:41 pm
I need to start up a website but i don’t want to use a free web host. I will be using the website for a webcomic but i’m not sure how to go about it. Can someone help me?.