Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / July 2007

Tip: Looking for answers? Try searching our database.

Marquee ProgressBar with backgroundworker

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mmcd79@tampabay.rr.com - 26 Jun 2007 04:33 GMT
I'm hoping someone can help me.  The only information (aside from the
limited MSDN help) seems to reference older technology/methods which
I'd like to stay away from.

VS 2005 (.net 2.0) has a ProgressBar with Marquee mode.  This mode
confuses the H out of me.  I fully understand how the 'normal' modes
of the progress bar work, with .increment or .performstep methods.
With those methods, I actively control the progress bar's value.

I don't understand marquee mode apparently.  As soon as I set it to
marquee mode, it starts scrolling???  There's no form of a stop/start
method for this style??  So far I've resorted to starting the progress
bar in "block" mode, and change it to 'marquee' mode right before I do
something requiring the use of a progress bar and then changing it
back to 'block' mode when done with it.  Is this my only option??

I could live with that option if I were dealing with a single threaded
app, but I'm having a difficult time using this method when using a
backgroundworker component.

Before I call the "RunWorkerAsync" method, I change my progress bar to
'marquee'.  In the "RunWorkerCompleted" method I then change it back
to 'block' mode.  When using this method, since I'm not actively
"incrementing" the progress bar, there seems to be no use for the
'progresschanged' event of the background worker itself.

While the above seems to "work" ok, this is not an ideal solution.
I'm fully managing the progress bar from the UI thread.  With this
solution I'm not monitoring progress on the backgroundworker thread at
all.  I'm merely monitoring progress on the UI thread in hopes the
background thread returns successfully.  If the backgroundworker
thread froze up for any reason to where it couldn't complete, I
wouldn't know since the progress bar would still be churning away
fooling the user into thinking the app is still "trying" to process
the data.

I need to monitor the background thread itself, but can't seem to find
a way to get marquee mode to work since I can't effectively utilize
the backgroundworkers 'progresschanged' event.

Is there an elegant solution for this?
mmcd79@tampabay.rr.com - 06 Jul 2007 04:45 GMT
Wow, that was a wonderful showing of helpful replies!!

Is anyone even monitoring this?  Does no one have an answer?  Should I
repost to another group?  For the love of God, someone say something!

On Jun 25, 11:33 pm, mmc...@tampabay.rr.com wrote:
> I'm hoping someone can help me.  The only information (aside from the
> limited MSDN help) seems to reference older technology/methods which
[quoted text clipped - 37 lines]
>
> Is there an elegant solution for this?
sa@openwinforms.com - 18 Jul 2007 10:07 GMT
I don't know whether this could help you but this is another infinite
progress bar:
http://www.openwinforms.com/infinite_progress_bar.html

sa@openwinforms.com
http://www.openwinforms.com/
mmcd79@tampabay.rr.com - 22 Jul 2007 08:26 GMT
I'm not really looking for a third party solution.  I need this
progress bar to live in a statusbarpanel, so a circular/rings type
progress bar just won't fit the bill.  Thanks anyway.

Ultimately I would like to understand how to get the native component
working like it should.  I'm obviously missing something simple here.

On Jul 18, 5:07 am, "s...@openwinforms.com" <s...@openwinforms.com>
wrote:
> I don't know whether this could help you but this is another infinite
> progress bar:http://www.openwinforms.com/infinite_progress_bar.html
>
> s...@openwinforms.comhttp://www.openwinforms.com/

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.