• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 919
  • Last Modified:

progress bar marquee mode

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?
  • 2
1 Solution
Mike TomlinsonMiddle School Assistant TeacherCommented:
"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
MoedAuthor Commented:
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.
Mike TomlinsonMiddle School Assistant TeacherCommented:
All forms run on the same main UI thread...I'm not sure there is a workaround for that!...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now