• Text in Progress Bar (VB6)

    Author
    Topic
    #372747

    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?

    Viewing 0 reply threads
    Author
    Replies
    • #596774

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

      • #596876

        What is a “custom” form?

        • #597041

          Sorry, that was a dumb way for me to put it. All the forms you build are custom. blush

          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[/url%5D or http://www.a1vbcode.com[/url%5D. They both list lots of code on that topic.

          • #597064

            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 grin).

            Gary

            • #597204

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

          • #597202

            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).

            • #597345

              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.

            • #597532

              Actually, Charlotte, if you haven’t worked with .NET yet – I’m having second thoughts about loading it

            • #597706

              Yeah, right! laugh

    Viewing 0 reply threads
    Reply To: Text in Progress Bar (VB6)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: