Loading Tabs:

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
 
D

Daniel Moth

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
 

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