articles

Home / DeveloperSection / Articles / ProgressBar Control in VB.Net

ProgressBar Control in VB.Net

Pushpendra Singh13509 13-Dec-2010

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

 


Updated 04-Mar-2020

Leave Comment

Comments

Liked By