Trigger Backgroundworker Completed event.

Posted by fireBand on Stack Overflow See other posts from Stack Overflow or by fireBand
Published on 2010-06-17T19:30:13Z Indexed on 2010/06/17 19:33 UTC
Read the original article Hit count: 165

Hello,

I am trying to display the progress bar(marque) in a separate form (progressForm) while i do some calculation in background.

I know the typical way of doing it is to include the calculation in background worker and show progressForm in main thread. This approach how ever will lead to lot of synch issues in my application hence I am showing the progressForm using progressForm.ShowDialog() inside the background worker process. But I need to trigger the Completed event with in the application to close the form.

Is this possible?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about progressbar