Custom Control not refreshing during long operations

MaxinA

Member
Joined
May 11, 2007
Messages
15
Location
Canada
Programming Experience
10+
Hi

I found a circular progress control over at sourceforge that I wanted to use in a project. I am trying to make a pacifier control that tells the user that things are still working (although we are waiting on a long web service call)

Anyway, I have been using this control, but what I found was that when the WS call is made the control (and essentially the whole ui) freezes up. I reasoned that it was a threading issue, so I modified the control to be multithreaded, and based the internal timer on a separate thread & used a delegate sub for the trigger. The odd thing is, is that this approach didnt work.

Does anyone know how I can force a refresh of a control when my WS call is being made? ps. "DoEvents" didnt work either :)

Thanks alot
 
Don't do long work in UI thread, use async/thread/BackGroundWorker to do service call. The circular progress control was probably ok as it was.
 
Back
Top