Solved

progress bar marquee mode

Posted on 2007-03-22
3
862 Views
Last Modified: 2013-11-26
VB.net 2005  
mdi app
I want to display a progress bar in a status strip on the parent form and show that a form is loading.  It does not have to be attached to anything as far as time goes.  I simply want to start it when a fom starts to load let it count up then start over if the form hasn't displayed yet.  I think the marquee mode is probably what I want to use???  How do I start and stop the progress bar?
0
Comment
Question by:Moed
  • 2
3 Comments
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 50 total points
ID: 18772338
"How do I start and stop the progress bar?"

To start it: (it just goes automatically in Marquee mode)

        ToolStripProgressBar1.Style = ProgressBarStyle.Marquee

To stop it:

        ToolStripProgressBar1.Style = ProgressBarStyle.Blocks
        ToolStripProgressBar1.Value = 0
0
 
LVL 2

Author Comment

by:Moed
ID: 18775394
So far so good but how do I make it run while the form is loading.  The progress bar is shown on the parent form but the marquee stops when the form is loading.
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 18775431
All forms run on the same main UI thread...I'm not sure there is a workaround for that!...
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

860 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