Hi was trying to have a progress bar to load for my encryption and compression application . I\'m trying to use the background worker to update the progress bar on the time taken for the compression
I have a BackgroundWorker that I use on a Search. Two different Searches can be done, one to a SQL DB and another to an Accpac DB. To accommodate for slow execution time to the Accpac DB, I use Thread
It seems like wherever I call ReportProgress on my BackgroundWorker, the processing of that method stops so my work never finishes. Example:
I’ve got a process which will take a little under 5 seconds to complete.The user will most likely notice the program flicker for a few seconds after pushing the “go” button.
this is my code: Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
I am currently working on a home project for myself. The program is written in C# using winforms.开发者_如何转开发
I\'m trying a very simple test for using BackgroundWorker in my app. I can see that the background worker is doing it\'s thing but for some reason the main thread is getting any progress notifications
I thought that the BackgroundWorker object will trap and pass exceptions raised in the DoWork handler to the RunWorkerCompleted hanlder but it is not happening to my program.
I have a fairly complex program so I won\'t dump the whole thing in here.Here\'s a simplified version:
I designed a WPF application based on MVVM pattern and I need to get large amount of data from a webservice, and i do it with a BackgroundWorker inside the ViewModel. To modify the observable collecti