Main Form Display Loading

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an application with a main form that retrieves data from 4 large
datasets. As each of the datasets is filled, the corresponding control is
displayed. The controls are displaying 1 at a time as each is loaded -- this
looks funny. Is there a way to suspend the updating of the main screen until
all 4 controls are loaded and then display the form with all the forms? I
have a splash-like screen to cover the delay but it would look better to hold
the display.

Thanks
 
I have an application with a main form that retrieves data from 4 large
datasets. As each of the datasets is filled, the corresponding control is
displayed. The controls are displaying 1 at a time as each is loaded -- this
looks funny. Is there a way to suspend the updating of the main screen until
all 4 controls are loaded and then display the form with all the forms? I
have a splash-like screen to cover the delay but it would look better to hold
the display.

Thanks

Hi Paul,

You could fire one or more BackgroundWorker threads and have the display indicate somehow that data is being retrieved, possibly by coverying the form with a panel or similar. Once the data has been retrieved, update the controls accordingly. See the languages.csharp newsgroup for a couple of ideas on how to do asyncronous processing.
 
Back
Top