Show progress of a loading form in

Posted on 2007-08-05
Last Modified: 2013-11-26
Hi all,
I would like to know how can I create a progress bar that will show the progress of a loading form in

I have a form with lots of procedures running while it loads, I don't have a way to know the progress of the loading progress.

Thanks in advance!
Question by:nahumba
    LVL 48

    Expert Comment

    You can add a frmStartupthat you use to the launch process. Then on the main form open the frmStartup

    Dim frm As New frmStartup
    frm.myProgressBar.Maximum = 100
    frm.myProgressBar.Minimum = 0
    frm.myProgressBar.Value = 0

    After this just add some values to your progressbar between your process and close it in the end of the routine.

    Author Comment

    Hi jpaulino, the problem is that I don't know which values to add to the progress bar, it's something that depends on the user machine's performance (I hope you know what I mean).

    So how can I get the progress bar to continue progressing correctly if I don't know which values to put between 0 and 100?

    It has to be something more low - level I think..

    Thanks again,
    LVL 96

    Expert Comment

    by:Bob Learned
    Are you looking to setup the progress as Style=Marquee?


    Author Comment

    Hi Bob,
    What do you mean Marquee? Do you mean a progress bar with "unknown" progress status?

    If this what you mean then - Yes, this could be a good solution.

    How do I set it?
    LVL 96

    Accepted Solution

    When you set the Style property to Marquee, and call the Update method, then ProgressBar control will show a continuous progress until you are done.  This is just to show progress for an indeterminate process, like downloading a file of unknown size.


    Author Comment

    Thank you Bob!

    Just one small question... If I use a progress bar on a status strip, and set the progress bar style to Marquee, then right after the form loads, the animation is started. How can I control the animation (i.e., tell it when to start and when to stop)?

    LVL 85

    Assisted Solution

    by:Mike Tomlinson
    It starts as soon as you set it to Marquee.

    To stop it, set it back to the default Style of "Blocks".

    Author Comment

    Yep - I've noticed that.

    Thank you!

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now