How Do I Control the Visibility of a Subform When it is Placed on a Tab Control? (Magic xpa 2.x)
When you place a subform on a Tab control, it will only be visible on that tab. There is nothing else you need to do: just place it on a tab as you would any other control.
-
Select the Tab control by pressing Ctrl+Click, on a part of the tab that doesn’t contain any other control. This selects only the Tab control, not the items attached to it.
-
Press the Enter key repeatedly. You will see that you are cycling through the tabs.
-
When you reach the tab that you want the subform on, click on the Subform control, and drop it on the tab. You will see it turn pink, as shown above. Then proceed to set up the subform as you ordinarily would.
How Do I Automatically Drop Form Controls Using a Specific Control Model?
Attaching the control
The Online and Rich Client Samples projects (program SB04 and RSB04)