J
james
In my app I load a control into a Panel, and then I fetch a large amount of
data from the database. I am trying to get the Control to display
immediately instead of after the Fetch completes. So I added a
control.Refresh() and control.Update() but none of that seemed to do the
trick. So as a test I added Application.DoEvents() just before the Fetch
hoping that would force the screen to re-paint, and what I find out is that
I get two different results. When Debugging and stepping over the DoEvents,
my control immediatley draws itself on the screen as I want it to, BUT, when
I actually run the app without debug stepping over the DoEvents, the screen
does NOT update until after the Fetch completes. So, are there any
suggestions as to how I can get the Refresh/Update/DoEvents to work as I
want?
thanks,
JIM
data from the database. I am trying to get the Control to display
immediately instead of after the Fetch completes. So I added a
control.Refresh() and control.Update() but none of that seemed to do the
trick. So as a test I added Application.DoEvents() just before the Fetch
hoping that would force the screen to re-paint, and what I find out is that
I get two different results. When Debugging and stepping over the DoEvents,
my control immediatley draws itself on the screen as I want it to, BUT, when
I actually run the app without debug stepping over the DoEvents, the screen
does NOT update until after the Fetch completes. So, are there any
suggestions as to how I can get the Refresh/Update/DoEvents to work as I
want?
thanks,
JIM