why is thread not working with graphic object?? [modified]
-
Can anyone tell me why is this scenario not working? A tabcontrol's paint event draws a rectangle and simultaneously a thread should update a label on that tabcontrol. Thread is created when the form is loaded. but its not working..... Label is not shown untill the drawing is completed. i cant figure out, what did i miss??? Any suggestions Thanks in advance -- modified at 2:37 Tuesday 17th October, 2006
-
Can anyone tell me why is this scenario not working? A tabcontrol's paint event draws a rectangle and simultaneously a thread should update a label on that tabcontrol. Thread is created when the form is loaded. but its not working..... Label is not shown untill the drawing is completed. i cant figure out, what did i miss??? Any suggestions Thanks in advance -- modified at 2:37 Tuesday 17th October, 2006
-
Even if a separate thread is updating the label, the event for redrawing it is executed in the main thread.
--- b { font-weight: normal; }
-
Can anyone tell me why is this scenario not working? A tabcontrol's paint event draws a rectangle and simultaneously a thread should update a label on that tabcontrol. Thread is created when the form is loaded. but its not working..... Label is not shown untill the drawing is completed. i cant figure out, what did i miss??? Any suggestions Thanks in advance -- modified at 2:37 Tuesday 17th October, 2006
-
Thanks , but how can this be achieved. i need to do both the things in parallel,,what do u suggest?
If you draw a rectangle and then update the label, the time difference should not be noticable. Most of the time they would both be drawn within the same page refresh, so there would be no delay at all. What is is that you do that is taking time?
--- b { font-weight: normal; }