1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Progress Indicator Help

Discussion in 'Visual Basic .NET' started by T3h~n0bb, Sep 5, 2011.

  1. T3h~n0bb

    T3h~n0bb Newbie

    Joined:
    Sep 5, 2011
    Messages:
    1
    Likes Received:
    0
    Hi guys I need help in some coding in visual basic 2010. How does one create a progress indicator for their application? Thanks.
     
  2. Hydrogen

    Hydrogen Newbie

    Joined:
    Dec 30, 2009
    Messages:
    39
    Likes Received:
    23
    Occupation:
    Co-Owner of AdvertMarketing
    Home Page:
    it's called a ProgressBar and you simply set a Min/Max Value and then increment the .value as you want the bar to progress. This is pretty beginner stuff you can find on any tutorial site or book.

    for shits and giggles though here is some code.

    Code:
    progressbar1.minimum = 0
    progressbar1.maximum = 100
    progressbar1.step = 1
    
    for i= 1 to 100
         'This increments and moves the progressbar by the number of i
         progressbar1.value = i
         application.doevents()
    loop