threading question
-
I have an animated gif in a label that I wanted to use as visual feedback when doing some processing. For example if I try to get a list of servers in the network. When ever I do some process the animated gif stops animating. Do I need to run it as a seperate thread...if so can someone give me an example? thanks in advance rafone
Statistics are like bikini's... What they reveal is astonishing ... But what they hide is vital ...
-
I have an animated gif in a label that I wanted to use as visual feedback when doing some processing. For example if I try to get a list of servers in the network. When ever I do some process the animated gif stops animating. Do I need to run it as a seperate thread...if so can someone give me an example? thanks in advance rafone
Statistics are like bikini's... What they reveal is astonishing ... But what they hide is vital ...
Hi, GUI stuff has to be handled on the main or GUI thread; it is the time-consuming other things your app does that should be delegated to one or more other threads; real threads, or ThreadPool threads, or BackgroundWorkers. BTW: Such threads are not allowed to touch the GUI Controls, unless they use Control.InvokeRequired & Control.Invoke. :)
-
Hi, GUI stuff has to be handled on the main or GUI thread; it is the time-consuming other things your app does that should be delegated to one or more other threads; real threads, or ThreadPool threads, or BackgroundWorkers. BTW: Such threads are not allowed to touch the GUI Controls, unless they use Control.InvokeRequired & Control.Invoke. :)