Form Containers?

vbFace

New member
Local time
Today, 16:26
Joined
Feb 11, 2004
Messages
5
In VB6, you can put all of your controls in a container such as a picture box or Frame control. To hide all of the controls, just set the container to Frame1.Visible = False.

I want to utilize the Tab strip in Access on a form. Instead of hiding each separate control, I would like to use a container like in VB. Are there any Access controls that act as containers? I couldn't find any. I even tried to use the VB6 Frame object in the Access project to no avail.
 
You can use the Access tab control and hide it and all the controls on it with one command.
 
But when I place controls on the Tab Control, they don't belong to it ... they are not contained by it. So if I clicked on a tab, the controls won't hide. I am not sure what you meant. I wouldn't want to hide the whole control anyway, I just want the appropriate controls for the clicked tab to show.
 
If you want to place a brand-new control onto a tab page, then you need to select the control you want from the toolbox, click on the desired tab page (if it isn't the current page) and hover your most pointer over the tab page. You'll see the tab page darken. Just click inside the tab page to place the control on that tab.

For an existing control, I've found that you need to cut and paste the control onto the desired tab page. You cannot just drag it onto the page. Right-click the desired control and choose Cut. Then click on your desired tab (you must do this, even if it's the current visible tab page), then right-click in the interior of the tab page and choose Paste.
 
Ack!!! That is what that darkened area meant. Thanks much!!!
 

Users who are viewing this thread

Back
Top Bottom