Main Form Display Loading

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
 
M

Morten Wennevik [C# MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top