John Wiberg

John Wiberg

  • NA
  • 3
  • 0

Updating the UI on different thread

Mar 11 2010 7:05 PM

Hi, First I would like to say I am VERY new to programming and still dont understand alot. Please be patient with me.
Im trying to have have an object on my UI refresh on a seperate thread. I have read about 100 tutorials about multithreading and still dont completely understand it. Im using zedgraph and need to refresh it on a seperate thread because it messes up my timings.
Here is why, I need to acurately have a process timed and the refresh or invalidate of zedgraph is slow and fluctuates. Im using the stopwatch and a tight loop (I know its bad) as my timer because I need accurate timing and thread.sleep isnt accurate below @20ms, Im working with between 5ms and 70ms.
Im confused with delegates and invoking, I mean completely lost.  I dont understand how invoke works and how to use it and same with delegates. ANY help would be appreciated.
Thansk John

Answers (4)