By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,806 Members | 1,089 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,806 IT Pros & Developers. It's quick & easy.

'Tab Control' (TabCtl), subforms; performance question

P: n/a
Hello,

If I have a form containing a Tab Control with N pages, each page
containing a subform, are those subforms loaded into memory when
another page has the focus? I have tried iterating through the
AllForms collection, but it only shows the parent form as being loaded.
I have a project with a large number of single forms that I would like
to group together under one or a few parent forms, using Tab Controls
to accomplish this; however, my users are in a shared-resource
environment (Citrix) with limited resources, and if all subforms in all
pages are loaded at all times, I would probably need to keep the page
count for each parent form to a minimum.
If anyone has any comments ofradvice, I would very much appreciate
hearing them.

Much Thanks,

Robert Waters

Sep 26 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
ro***********@gmail.com wrote in
news:11*********************@m7g2000cwm.googlegrou ps.com:
If I have a form containing a Tab Control with N pages, each page
containing a subform, are those subforms loaded into memory when
another page has the focus?
Yes. The subforms are populated when the main form is loaded.
I have tried iterating through the
AllForms collection, but it only shows the parent form as being
loaded.
That's because the subforms are loaded as children of the main form,
so their name is not the same as their name when they are not
imbedded. You'd find the same thing when you use the Forms
collection (which is for open forms only).
I have a project with a large number of single forms that I would
like to group together under one or a few parent forms, using Tab
Controls to accomplish this; however, my users are in a
shared-resource environment (Citrix) with limited resources, and
if all subforms in all pages are loaded at all times, I would
probably need to keep the page count for each parent form to a
minimum. If anyone has any comments ofradvice, I would very much
appreciate hearing them.
Load the subforms in the OnChange event of the tab control.

Or use the tab control as a tab strip and use its OnChange event to
swap out multiple subforms in a single subform control (if you don't
have any other controls on your tab pages).

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Sep 26 '06 #2

P: n/a

David W. Fenton wrote:
Or use the tab control as a tab strip and use its OnChange event to
swap out multiple subforms in a single subform control (if you don't
have any other controls on your tab pages).
Thank you David; I've swapped the SourceObject property of the subform
when TabCtl onChange occurs. Thank you very much for your help.

-Robert

Sep 26 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.