473,725 Members | 2,428 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
2 4562
ro***********@g mail.com wrote in
news:11******** *************@m 7g2000cwm.googl egroups.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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2159
by: AccessWhiz | last post by:
I have had some good success using MouseHook from Stephen Lebans. (I've downloaded and am using the current version of MouseHook dated 7/2/2003). However, I do have a question regarding MouseHook. I have a form with a tab control. Each page in the tab control uses fields from the same table. In the OnLoad event of the form the wheel on the mouse is disabled. Everything seems to work okay. When I click on a tab, and try using
0
1978
by: Jenni | last post by:
I currently have a query that is joining two distinct pools of information and turning them into one records with a unique identifier This query is dependent on criteria passed from a form in a number of text and combo boxes. This part of the form works fine. On Open a Tab control is displayed but the subforms in each of the three tabs are hidden until the required info is gathered from the user. The subforms are then displayed,...
3
4174
by: Not Me | last post by:
Hi, Just trying to get my head around tab controls, is there anywhere which would describe the structure of how they work? I seem to be ok so far, being able to check which page I'm on etc... but I'm at a loss when trying to access controls inside the tabs. If I try to access the form directly (!...etc.) I get an error that the form can't be found. I'm not sure how I can use parent/child relationships to get at the (sub)forms which...
3
1497
by: Steven | last post by:
My from has a Tab Control on it with four Pages. I want to run some code when one of the Pages get selected. How can I tell when one or even which one gets selected? The "click" event for the Pages only runs when the "Page" gets clicked on, not the Tab for the Page. Thank you...
0
1462
by: misscrf | last post by:
I have an entry form which has a tab control. If print screens are needed, please let me know and I will prepare them and post them. Anyway, this tab control has 3 pages. When I am on one of the pages, it has 2 subforms. Now I do have onexit code for the last field of the 2nd form, which sets focus to the first field of the next form on the next page. Here is the thing. A user might be on the last subform on the last page. Then they...
2
1542
by: pietlinden | last post by:
I have a stupid question (so finish swallowing now... I don't want to be accused of any beverage-related mishaps). I have a form with several subforms, with each subform on a separate tab. I'm trying to loop through the subforms so that I can set the caption of the tabcontrol page to something like <SubName> (recordcount) Okay, now the two dumb questions... 1. why do these subforms think they're called "tbl..." when I saved the
7
12306
by: ApexData | last post by:
I am using the following code in my TabControl to manage subform loads. The code assigns the subForms SourceObject. - Do I also need code to DeAssign the SourceObject when leaving the Tab, I'm thinking the Table will stay open otherwise ??? - Do I also need to use code to Assign the Child&Master Links, or can I just type the names into the subForms Control Property and just depend on the SourceObject to link to Table???
1
2080
by: (PeteCresswell) | last post by:
Posted this on microsoft.public.access a few days ago, but no nibbles. ---------------------------------------------------------------------------------------------------- I've got a form with a humongous tab control on it. Nine tabs, some of them with 3 or 4 subforms. I'm going nuts trying to fit everything on to a user's 1024x768 laptop. I'll re-size various objects, save the form, and then open
2
2770
by: angi35 | last post by:
I hope this is an easy question for someone out there. In Access 2000…I have a MainForm with a tab control (MAIN TABS) with 7 tabs. Within each tab is a SubForm. Within each SubForm is a tab control (TabCtl0) with 2-6 tabs. Within each TabCtl0, each tab contains a SubSubForm. Each record in the MainForm has an ID Number; the SubForms are bound to that ID Number, and the SubSubForms are bound to that ID Number in the SubForms. In order...
0
8874
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9393
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9164
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8072
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6695
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6000
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4775
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3212
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2151
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.