yaghoobi
yaghoobi

Reputation: 1

view progressbar with thread

I have a project in c# and I want to view progressbar with another form in thread mode, when working with data. I want to do this:

MyMessageBox.ShowWaiting("Please wait..."); //Do Anything; MyMessageBox.HideWaiting();

MyMessageBox is a form with a progressbar in marque style. Can you help me how to do this?

Upvotes: 0

Views: 123

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038810

You could use the BackgroundWorker class which allows you to execute tasks on background threads and report progress at the same time.

Upvotes: 1

Related Questions