Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

How to create a progress bar with a counter in Visual Basic

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
34,033
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 9, 2008

This is the code:
if progressbar1.value = 100 then
progressbar1.value = 0
else
progressbar1.value = val(progressbar1.value) + val(1)
end if
label1.caption = progressbar1.value

http://www.enweb.net

Category:

Howto & Style

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Uploader Comments (esproman)

  • How can i make my label change at a certain percentage? I want it to say at 1% "Installing". At the 35% i want it to change and say "Copying files". At 80% i want it to say "checking".

    Also, one other question,

    How can i make the progress bar slow down, and than speed up and etc????

    PLEASE REPLY!

  • to slow it down/speed it up... u just change the interval of the timer

    To make a label say diffrent stuff:

    'After all other code in the timer

    if progressbar1.value = 35 then

    label1.caption = progressbar1.value & "%" & " Installing"

    end if

    if progressbar.value = 75 then

    label1.caption = progressbar1.value & "%" & " Almost done!"

    end if

see all

All Comments (125)

Sign In or Sign Up now to post a comment!
  • what theme do u have

  • @Gameshacker15932 009 Sound System - Dreamscape

  • @MatthewCenance You must type Label1.Text, not Label1.Caption!

  • @DaMiK83 But Timer1.Stop() does not work on Visual Basic 6!

  • @drakola159753 You must write the code for the Timer for it to work!

  • I cant believe you still have that DINOSAUR of a computer. You my friend, are awesome. (where did the 60's go.........)

  • i have a problem:

    when i press debug the progsesbar do not load

    but when i click on it 1 then it wil be 1 procent and then ik click 2 it wil be 2 procnt....

    can you help me

  • NOOO, NOT THIS SONG AGAIN, PLEASE NO!!

  • @ionlylikecodmw1 It is windows xp with the zune theme.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more