P
Paul Shave
In an MDI app, from a child form I use BeginInvoke on a delegate to
start an async printing process. When it finishes, my callback
function (on the worker thread) calls me.BeginInvoke to get back to
the main thread where I update the status line on the MDI form
(Printing complete). This works fine, but the problem is that if the
user closes the child form before the printing is complete, the
callback executes but the main thread has now gone, so the MDI form
status bar doesn't get updated.
The worker thread at this point doesn't have an MdiParent. How can I
get back to the MDI form from the worker thread callback function to
update the status line?
Paul Shave
start an async printing process. When it finishes, my callback
function (on the worker thread) calls me.BeginInvoke to get back to
the main thread where I update the status line on the MDI form
(Printing complete). This works fine, but the problem is that if the
user closes the child form before the printing is complete, the
callback executes but the main thread has now gone, so the MDI form
status bar doesn't get updated.
The worker thread at this point doesn't have an MdiParent. How can I
get back to the MDI form from the worker thread callback function to
update the status line?
Paul Shave