473,382 Members | 1,717 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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

Ericks
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
4 1581
puppydogbuddy
1,923 Expert 1GB
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
3,532 Expert 2GB
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
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
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

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

Similar topics

5
by: Paul Mendez | last post by:
I am creating a form with a tab control containing 10 tabs. and what I want to do is on only on of the tabs, I want a sub section of tabs. So what it ends up being is one main tab control with...
1
by: Mark C | last post by:
I have yet another problem with the infamous tab control in my Access 97 database. I have a form with a tab control with 4 tabs on each tab is a sub form bound to a form. When the main form loads...
3
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......
3
by: John Crowley | last post by:
I keep running into this over and over again... I want a block server control that renders a header and footer, and child controls in between. But I don't want a templated control, for the...
0
by: RSB | last post by:
Hi Every one, i am trying to create a UserControl and i am passing a Array of strings to it. Now based on the Array elements i am creating the LinkButtons Dynamically. I am also passing a Event to...
13
by: KMiller | last post by:
I would like to control entry into one or more of the tabs > I have set up on my Tab control based on set rules. Does > anyone know how to grey-out the text so that a user will > see that they do...
7
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...
17
by: Kbalz | last post by:
I'm developing a Wizard type program, and I'm flipping between steps by using a TabControl.. buttons on each tabPage move to the next or previous tabPage. When I press CTRL+Tab however, the...
7
by: RichB | last post by:
I am trying to get to grips with the asp.net ajaxcontrol toolkit, and am trying to add a tabbed control to the page. I have no problems within the aspx file, and can dynamically manipulate a...
56
by: csolomon | last post by:
Hello: I have something I would like to do and I was wondering if tab controls was the best route to accomplish it. I have 5 categories of material types. I created the application from an...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.