G
Guest
I was wondering if anybody had any suggestions on the following requirement
I have an MDI parent form with a child form. A seperate thread is created by the child form to run a computation. The progress of the computation should be reported to the user, and also allow the user to cancel at any time. The form that displays the progress should be modal to prevent access to the MDI parent until the computation is complete. There are several different types of computations that can be run so the form that displays the progress shouldn't implement the code. What is the best approach to handling this situation
On the computation thread I have tried invoking the modal display of the progress form on the child form and using a delegate to transfer control back to the computation thread. This works but the progress form isn't modal (it is always on top though). I can still access the MDI parent.
I have an MDI parent form with a child form. A seperate thread is created by the child form to run a computation. The progress of the computation should be reported to the user, and also allow the user to cancel at any time. The form that displays the progress should be modal to prevent access to the MDI parent until the computation is complete. There are several different types of computations that can be run so the form that displays the progress shouldn't implement the code. What is the best approach to handling this situation
On the computation thread I have tried invoking the modal display of the progress form on the child form and using a delegate to transfer control back to the computation thread. This works but the progress form isn't modal (it is always on top though). I can still access the MDI parent.