Giving user feedback during a long running process.

  • Thread starter Thread starter Tim Marsden
  • Start date Start date
T

Tim Marsden

Hello

I have a routine that runs a number of long running processes.
I would like to show the user a form showing which process is running and
perhaps some animation, and a cancel button if the user chooses to cancel.
If the user cancels I want to kill the long running process.

I am not to familiar with threads.
I do not want to initiate the processes from the Form.
The process cannot give feedback.

I am using VB.NET.

Any suggestion would be gratefully received.

Tim
 
Hello,

Tim Marsden said:
I have a routine that runs a number of long running
processes. I would like to show the user a form showing
which process is running and perhaps some animation,
and a cancel button if the user chooses to cancel.
If the user cancels I want to kill the long running
process.

I am not to familiar with threads.
I do not want to initiate the processes from the Form.
The process cannot give feedback.

???

Multithreading + Windows Forms:

http://www.devx.com/dotnet/Article/11358

A .NET Progress Dialog
http://www.codeproject.com/cs/miscctrl/progressdialog.asp
 
You can:
1. In the main thread, create a new work thread.
2. In the new thread, performing the time-consuming task.
3. The main thread is responsible for the status updating and input
processing.
4. If the user click the exit button, the main thread can send message to
notify the work thread to exit, or kill the work thread.

Best regards,

Duke Sun
Microsoft Online Partner Support
<MCSE/MCDBA/MCSD>

Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top