+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: ProgressBar in VB6

  1. #1
    Join Date
    Oct 2008
    Location
    Istog, Kosova
    Posts
    4,001
    Blog Entries
    1
    Rep Power
    40

    ProgressBar in VB6

    Hi all!

    Today I am going to make another simple tutorial about how to make a progress bar in VB6.

    First you must include some components. Go to Project – Components – (in the list choose) Microsoft Windows Common Controls 5.0.

    You will see this now:





    Now double click on form1 and drag-and-drop a PrograssBar, a timer and a Button.


    It will look something like this:





    On form_load (simply double click on the form and you will be ready to write the code) wrote this line on code.

    Code:
    Private Sub Form_Load()
    ProgressBar1.Value = ProgressBar1.Min
    End Sub
    It sets the value of the ProgressBar at min.

    First set the interval of the timer:




    Now double click on the timer and write this:

    Code:
    Private Sub Timer1_Timer()
    ProgressBar1.Value = ProgressBar1.Value + 10
    If ProgressBar1.Value = 50 Then
    ProgressBar1.Value = ProgressBar1 + 50
    If ProgressBar1.Value >= ProgressBar1.Max Then
    Timer1.Enabled = False
    End If
    End If
    End Sub
    You probably understand this code. I wanted to make the progressbar faster from the middle of it.

    Double click on the button (its name has been changed into “close”) and write:

    Code:
    Private Sub Command1_Click()
    End
    End Sub
    It will close the program.

    By MathX

    Enjoy…
    Interested in participating in community events?
    Want to harness your programming skill and turn it into absolute prowess?
    Come join our programming events!

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Jordan Guest

    Re: ProgressBar in VB6

    Very neat. This can be used to create a "splash" screen.

  4. #3
    Join Date
    Sep 2008
    Location
    Kosovo
    Posts
    4,032
    Rep Power
    44

    Re: ProgressBar in VB6

    nice tutorial dude

  5. #4
    Join Date
    Nov 2008
    Location
    Kosovo.
    Posts
    2,391
    Rep Power
    30

    Re: ProgressBar in VB6

    Nice tutorial . +rep .

  6. #5
    Join Date
    Oct 2008
    Location
    Istog, Kosova
    Posts
    4,001
    Blog Entries
    1
    Rep Power
    40

    Re: ProgressBar in VB6

    Thank u all!!!
    Interested in participating in community events?
    Want to harness your programming skill and turn it into absolute prowess?
    Come join our programming events!

  7. #6
    Join Date
    May 2008
    Location
    Hell
    Posts
    3,852
    Blog Entries
    4
    Rep Power
    49

    Re: ProgressBar in VB6

    This is something I must try


    EDIT - Love you, enjoy rep+
    Last edited by Turk4n; 01-13-2009 at 09:52 AM.

  8. #7
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: ProgressBar in VB6

    Nice. I'd +rep you, but I can't.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  9. #8
    Join Date
    Aug 2007
    Location
    Gizeh, Al Jizah, Egypt, Egypt
    Posts
    8,675
    Blog Entries
    12
    Rep Power
    81

    Re: ProgressBar in VB6

    nice elban
    rep to my riend
    yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
    Code:
    eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
    www.amrosama.com | the unholy methods of javascript

  10. #9
    Join Date
    Nov 2008
    Location
    Kosovo.
    Posts
    2,391
    Rep Power
    30

    Re: ProgressBar in VB6

    i can +rep u now .. i think this +rep is gonna make you a GURU ..
    Best wishes my friend ..

  11. #10
    Datasoft is offline Newbie
    Join Date
    Feb 2009
    Posts
    1
    Rep Power
    0

    Re: ProgressBar in VB6

    Hi
    Can anyone help me, how to get the Progressbar follow a movieclip, so the Progressbar ends the same time as the movie?
    Thank you.

+ Reply to Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Similar Threads

  1. Progressbar
    By SandyTeo in forum Java Help
    Replies: 2
    Last Post: 05-14-2011, 12:15 PM
  2. Replies: 1
    Last Post: 04-29-2010, 09:09 AM
  3. ProgressBar Problem
    By capedech in forum Visual Basic Programming
    Replies: 0
    Last Post: 06-14-2009, 08:47 AM
  4. Help in GUI ProgressBar JAVA
    By mr_skyflakes21 in forum Java Help
    Replies: 4
    Last Post: 05-06-2009, 03:44 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts