07-The Progress Bar

0
339

Progress bar control is used to provide visual feedback to the users about the status of the task. The bar fills from the left to the right to help you determine the progress of the operation and how long would it takes.

 

Now, click the progress bar in the toolbox and drag it into the form.

pbar1

The prime properties of a progress bar are  Maximum ,Minimum and Value. The purpose of the  Minimum and Maximum properties are to set the minimum and maximum values of the progress bar that can be displayed. While, the purpose of  Value property is it specifies the current position of the progressbar.

 

Example

  1. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  2. 'set values to the progress bar
  3. ProgressBar1.Minimum = 0
  4. ProgressBar1.Maximum = 200
  5. ProgressBar1.Value = 130
  6.  
  7. End Sub

Output :

pbar2

 

 

Readers might read also:

 

 

Facebook Comments

LEAVE A REPLY

Please enter your comment!
Please enter your name here