开发者

Emerging MessageBox while processing data

I am working with C# and a WPF project.

I created a button that, when clicked, process information that generally can last less than 3 minutes; during that time I would like to show a message box indicat开发者_StackOverflow中文版ing: "This process will last less than 3 minutes, please wait", then when the process finishes I would like to supress the message box automatically. Is this possible? How can I get this?

Thank you.


Instead, why not start the long running task using a BackgroundWorker and report progress?: WPF Multithreading: Using the BackgroundWorker and Reporting the Progress to the UI.

In fact, WPF has it's own mechanism called the Dispatcher: Build More Responsive Apps With The Dispatcher

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜