Home > DeveloperSection > Beginner > ProgressBar Control in VB.Net

ProgressBar Control in VB.Net


VB.Net VB.Net 
Ratings:
0 Comment(s)
 8242  View(s)
Rate this:

ProgressBar Control in VB.Net

Progress Bar Control is used to display the progress of a task.

Drag and drop ProgressBar Control from toolbox on the window Form. By default maximum value of ProgressBar is set 100 and minimum value is set 0 and this value can be changed.

ProgressBar Control in VB.Net

Code:

Public Class Form14

 

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

     'Progressbar will show progress bteween max and min value

     While ProgressBar1.Value < 100

     ProgressBar1.Value += 5 'progressbar value will increment 5 in each step

     End While

 End Sub

 

End Class

Run the project

ProgressBar Control in VB.Net

When you click StartTime button then ProgressBar will start.

ProgressBar Control in VB.Net

 


Don't want to miss updates? Please click the below button!

Follow MindStick