tags:

views:

10

answers:

1

Hello:

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 indicating: "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.

A: 

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

Mitch Wheat