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 General / May 2008

Tip: Looking for answers? Try searching our database.

BackgroundWorker question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Seth Williams - 16 May 2008 18:58 GMT
I know how to update a status bar using the ProgressChanged event, if all
the processes are in the form.

However, I have a separate class, which does a recursive file copy. In that,
I'd like to update the status bar as each file is addressed. (I have several
places in classes, I'd like to use in order to change the status on the
status bar)
I tried to create a global variable for status, change the variable when
each file was addressed, and then in the ProgressChanged event assign that
global variable to the text of the status bar label, but that didn't work:
sbLblFiles.text=gsStatus

When debugging, the status variable is changed, but it doesn't get reflected
in the status bar.

I also tried making the BackgroundWorker component public, so I could
possibly refer to it in the classe, but that's apparently not possible
either.

Any ideas?
Thiago Macedo - 19 May 2008 21:43 GMT
> I know how to update a status bar using the ProgressChanged event, if all
> the processes are in the form.
[quoted text clipped - 16 lines]
>
> Any ideas?

check out this threads:
http://groups.google.com.br/group/microsoft.public.dotnet.languages.vb/browse_th
read/thread/378c7a63102674e1/796345fb67f1694e

solutioned:
http://groups.google.com.br/group/microsoft.public.dotnet.languages.vb/browse_th
read/thread/bed23beb9f7a20c9/ee5acbf0ae15e871


Thiago

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.