Users Pricing

articles

home / developersection / articles / progressbar control in vb.net

ProgressBar Control in VB.Net

Pushpendra Singh 14903 13 Dec 2010 Updated 04 Mar 2020

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

 


Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md