[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Show progress of a loading form in vb.net

Posted on 2007-08-05
Medium Priority
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 vb.net?

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

ID: 19633882
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

ID: 19633899
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
ID: 19634115
Are you looking to setup the progress as Style=Marquee?

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.


Author Comment

ID: 19634130
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

Bob Learned earned 1800 total points
ID: 19634167
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

ID: 19634249
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 86

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 200 total points
ID: 19634322
It starts as soon as you set it to Marquee.

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

Author Comment

ID: 19634751
Yep - I've noticed that.

Thank you!

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
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. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

873 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