Results 1 to 10 of 10
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Serbia and Montenegro (Yugoslavia)
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Text in Progress Bar (VB6)

    I'm using the generic progression bar in Visual Basic. When it progresses, I want it to display text over it, like "Processing. . ." or possibly even give a percent complete. Absent a caption property, I'm gathering that this isn't possible. Is there another progress bar hidden somewhere that will do this?

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Text in Progress Bar (VB6)

    The usual way to do it is with a custom form instead of the generic progress bar.
    Charlotte

  3. #3
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Serbia and Montenegro (Yugoslavia)
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Text in Progress Bar (VB6)

    What is a "custom" form?

  4. #4
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Text in Progress Bar (VB6)

    Sorry, that was a dumb way for me to put it. All the forms you build are custom. <img src=/S/blush.gif border=0 alt=blush width=15 height=15>

    What I meant was, create a form that mimics the progress bar and include a label on it where you can set the caption to the text you want to display. If you search around, you'll be able to find samples of code to do this. I'd look for "progress bar" someplace like http://www.vbcode.com or http://www.a1vbcode.com. They both list lots of code on that topic.
    Charlotte

  5. #5
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: Text in Progress Bar (VB6)

    If you're working in VB, you can also build a custom usercontrol, combining multiple controls into a single one, which can then be used on a form (or so I've read <img src=/S/grin.gif border=0 alt=grin width=15 height=15>).

    Gary

  6. #6
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Serbia and Montenegro (Yugoslavia)
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Text in Progress Bar (VB6)

    Thanks, Charlotte (and I'm actually feeling kind-a dumb that I couldn't figure out what custom form meant).

    I will check out these sites - either way, from their names I'm guessing they are good resources anyway.

    Do you know if VB.Net has a better progression bar or is it the same? (I am about to install VB.NET side by side with VB6...wish me luck).

  7. #7
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Serbia and Montenegro (Yugoslavia)
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Text in Progress Bar (VB6)

    Thanks Gary. It just seemed to me that there should already be something out there with this basic functionality.

  8. #8
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Text in Progress Bar (VB6)

    I haven't had time to even look at .Net yet, so I can't say. Maybe someone else will jump in on that question.
    Charlotte

  9. #9
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Serbia and Montenegro (Yugoslavia)
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Text in Progress Bar (VB6)

    Actually, Charlotte, if you haven't worked with .NET yet - I'm having second thoughts about loading it [img]/forums/images/smilies/wink.gif[/img]

  10. #10
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Text in Progress Bar (VB6)

    Yeah, right! <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15>
    Charlotte

Posting Permissions

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