B
Bill
I have a Windows Form app written with .Net 2.0 that has a lengthy
routine. I would like to:
1. cancel the routine with the Escape key
2. update a progress bar during the routine.
3. avoid using Application.DoEvents which I understand should be
avoided.
4. not use Win32 API calls
asynchronous execution: I do not believe it is possible to update
the progress bar, but I can cancel the routine when the user hits the
Esc key without using DoEvents.
Run the routine in the same thread as the UI: I can get the progress
bar to update, but I cannot enable the Esc key without
Application.DoEvents -can that be done?
What are the options and best practices for this scenario?
Bill
routine. I would like to:
1. cancel the routine with the Escape key
2. update a progress bar during the routine.
3. avoid using Application.DoEvents which I understand should be
avoided.
4. not use Win32 API calls
asynchronous execution: I do not believe it is possible to update
the progress bar, but I can cancel the routine when the user hits the
Esc key without using DoEvents.
Run the routine in the same thread as the UI: I can get the progress
bar to update, but I cannot enable the Esc key without
Application.DoEvents -can that be done?
What are the options and best practices for this scenario?
Bill