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

How to put a Tab control on just one of a form's tabs

Ericks
P: 74
This one should be a piece of cake but I'm suffering a temporary black out.

I want to place a Tab control on one of a form's tabs. It keeps appearing on all tabs instead of just the one I want it on. I highlight the tab as I would do when putting a subform on it but still it "shines through".
Oct 16 '07 #1
Share this Question
Share on Google+
4 Replies


puppydogbuddy
Expert 100+
P: 1,923
This one should be a piece of cake but I'm suffering a temporary black out.

I want to place a Tab control on one of a form's tabs. It keeps appearing on all tabs instead of just the one I want it on. I highlight the tab as I would do when putting a subform on it but still it "shines through".
Hi Eric,
If you are referring to adding additional tab pages: Don't use the tab control tool from the toolbox to add additional pages. Instead, add the additional pages by using either the Insert menu on the main menu bar, or the shortcut menu of the tab control. To add a tab page by using the Insert menu, on the Insert menu, click Tab Control Page. To add a page using the shortcut menu of the tab control, right-click the existing tab control and click Insert Page from the shortcut menu.
Oct 16 '07 #2

missinglinq
Expert 2.5K+
P: 3,532
If, on the other hand, you actually do want to place one tab control page on another tab control page, you're going to have to do some fancy dancing!

If you were to select your original tabbed control and move it, you would discover that the second tabbed control not only "shines thru" on all of the tabbed pages, it also appears on the form itself! Tabbed controls cannot be placed on tabbed controls, only on forms!

So what you have to do is create two forms.

On FormA have your original tabbed control.

On FormB place a tabbed control. This will be the tabbed control within a tabbed control.

Now, go back to FormA and place a subform on the desired tabbed page. When the Subform wizard comes up, select FormB as the form to use.

It's not an elegant solution, but with some formatting of FormB you can probably get it to look like you want!

Good luck!

Linq ;0)>
Oct 16 '07 #3

Ericks
P: 74
If, on the other hand, you actually do want to place one tab control page on another tab control page, you're going to have to do some fancy dancing!

If you were to select your original tabbed control and move it, you would discover that the second tabbed control not only "shines thru" on all of the tabbed pages, it also appears on the form itself! Tabbed controls cannot be placed on tabbed controls, only on forms!

So what you have to do is create two forms.

On FormA have your original tabbed control.

On FormB place a tabbed control. This will be the tabbed control within a tabbed control.

Now, go back to FormA and place a subform on the desired tabbed page. When the Subform wizard comes up, select FormB as the form to use.

It's not an elegant solution, but with some formatting of FormB you can probably get it to look like you want!

Good luck!

Linq ;0)>
Thanks for that. I already thought it would be something like you describe. I have to use a Tab on a Tab because of lack of space.
Strange, I would think that a Tab control would behave like a Subform. Why can I put a subform on a Tab but can't do the same with a Tab control? But then I guess that a Tab control is just a control that applies to the Form = underlying table/query it's on.

Regards,

Eric
Oct 16 '07 #4

Ericks
P: 74
Hi Eric,
If you are referring to adding additional tab pages: Don't use the tab control tool from the toolbox to add additional pages. Instead, add the additional pages by using either the Insert menu on the main menu bar, or the shortcut menu of the tab control. To add a tab page by using the Insert menu, on the Insert menu, click Tab Control Page. To add a page using the shortcut menu of the tab control, right-click the existing tab control and click Insert Page from the shortcut menu.
No, certainly not. I wouldn't do that if I would only want to add another Tab page. It's actually a complete Tabcontrol with 3 tabs to be placed on a Tab. Anyways, I went for the solution as given above.

Thanks for your feedback.
Oct 16 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.