Loading Tabs:

  • Thread starter Thread starter Mader
  • Start date Start date
M

Mader

When loading a form with several tabs and several controls on each tab.
What is the best way to load them?

If I load everything it takes about 12 seconds to load.

Should I create the first tab and its controls then create the rest in
a different thread?

Or do I not create the controls until they click on each tab?

Thanks,
Jason
 
Do not create controls on worker threads. Other than that you are thinking
along the right lines. If you cannot afford the perf hit all in one go, you
have to distribute it. So you could create/load the controls for each tab
only when it is clicked (delayed population). There are other approaches
with regards to optimising the designer generated code for v1.0... search
the archives.

Cheers
Daniel
 
Back
Top