show form from worker thread
-
I have created a worker thread. Now I would like to create a separate window (form) to watch the progress of the thread. I specifically do NOT want to use an invoke back to the main form because I'm starting several such threads and wish to monitor them independantly. Obviously I would like the worker thread to directly create and show its own form. Well I can easily create and show a form from the worker thread, however the form is not receiving window events and consequently nothing much happens. What do I need to do in order to get this form to respond to windows messages? Any advice people? Thanks Alastair Only change is constant unless it isn't
-
I have created a worker thread. Now I would like to create a separate window (form) to watch the progress of the thread. I specifically do NOT want to use an invoke back to the main form because I'm starting several such threads and wish to monitor them independantly. Obviously I would like the worker thread to directly create and show its own form. Well I can easily create and show a form from the worker thread, however the form is not receiving window events and consequently nothing much happens. What do I need to do in order to get this form to respond to windows messages? Any advice people? Thanks Alastair Only change is constant unless it isn't
Are there any
Application.DoEvents();
calls in the worker thread? Otherwise the form gets no time to process the window messages. -
Are there any
Application.DoEvents();
calls in the worker thread? Otherwise the form gets no time to process the window messages.Ohmygod. Do I feel stupid or what? Thank you John. I have no idea what I was thinking. Anyhow of course I didn't so the poor thread couldn't service events. In partial mitigation it is 11.47pm here and I have flu. Problem solved. Thanks again! Only change is constant
-
Ohmygod. Do I feel stupid or what? Thank you John. I have no idea what I was thinking. Anyhow of course I didn't so the poor thread couldn't service events. In partial mitigation it is 11.47pm here and I have flu. Problem solved. Thanks again! Only change is constant
Or is that Corinna? I can never figure out first from last names... Only change is constant
-
Or is that Corinna? I can never figure out first from last names... Only change is constant
:) Corinna: First Name, usually abbreviated (Coco) John: Ugly Last Name. (One day I'll marry someone just to get a better name.)