ITSourceCode.com

We Exist to Provide 100% Free Source Code and Tutorials

Custom Search

07-The Progress Bar

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 progress bar.

 

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

 

Facebook Comments

Check Your Domain Ranking

Leave a Reply

Your email address will not be published. Required fields are marked *

ITSourceCode.com © 2016 Frontier Theme

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!