I have a project in c# and I want to view progress开发者_运维技巧bar 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?
You could use the BackgroundWorker class which allows you to execute tasks on background threads and report progress at the same time.
精彩评论