473,406 Members | 2,404 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,406 software developers and data experts.

Tab Control Problem

Thought that this would be an easy thing to do but apparantly not....
I have a tab control on my form with about 5 different tabs (pages). On one of these tabs I tried to place another tab control. Instead, the 2nd tab control overlays the entire page ranges of the 1st tab control i.e. it is not embedded into a singe tab of the 1st control.

Does this make sense and apart from using visibility true/false for the second tab when the page is selected, is there a way to embed 1 tab control into a single page of another?
Feb 25 '09 #1
3 1852
missinglinq
3,532 Expert 2GB
No, this can't be done directly. You can't place a Tab Control on a Tab Control! But you can place a Subform on the Page of a Tab Control, with the Form used as the basis of the Subform having a Tab Control on it.

But I have to tell you that this complicated a scenario makes one think that your overall design is awfully "busy" and may need re-thinking. Exactly what are you doing here?

Linq ;0)>
Feb 25 '09 #2
OldBirdman
675 512MB
Sometimes I have tab controls where most of the pages are fine, but one has too many controls to fit easily. I paste pictures of birds from several sites, and want certain identifying information. Photographer, date, location, species, common name, etc. One tab of my options tab control might be "Warn if...", and all the warning checkboxes don't fit. Checkboxes labeled "Warn if photographer name missing", "Warn if date missing", ... Easily sub-tabbed on another tab control. Here's how:
Expand|Select|Wrap|Line Numbers
  1. Private Sub tabMain_Change()
  2.     If tabMain.Pages(tabMain.Value).Name = "Page3" Then
  3.         tabSub.Visible = True
  4.     Else
  5.         tabSub.Visible = False
  6.     End If
  7. End Sub
For this example, I have TabControl = tabMain and 3 tabs, Page1, Page2, & Page3. I create another TabControl = tabSub. Yes, it appears to be on all pages of TabMain, because it isn't a part of tabMain at all. It is a control on my form, but it "Shows through" tabMain, and appears to be a control on a page (or all pages now). By making it Visible only when the proper tab page is active, it acts as if it is a sub-tab control.
You have already done the form design. Change my tab control name to yours, and it should work.
Feb 26 '09 #3
Cheers for the info.
I was just wondering if it was possible but I guess not. I have gone for the tab control on a subform approach.

The form I am using is really busy but this was the best way of dealing with what the user sees (after much thinking about the problem).

The main form is a utilities form where users can perform many different tasks with the table data. Just on one of the tabs, they needed to see a lot of information which is best handled ny list boxes on each of the tabs.
Feb 26 '09 #4

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

Similar topics

11
by: Sagaert Johan | last post by:
I have made a custom control that draws a rectangle when the mouse is down, and does nothing when the mouse is up. I set/reset a flag in MouseDown/Mouse up and use this to do the drawing in the...
11
by: Brian W | last post by:
Yet another editor problem To reproduce do the following 1) Open a Webform and switch to HTML edit mode 2) Enter the Following (include spaces) This is some text before <asp:hyperlink...
3
by: Eric | last post by:
I have built a composite user web control that I want to create dynamically. The form will contain a variable number of these controls and as well some of the contents of the user web control...
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
7
by: Shimon Sim | last post by:
I have a custom composite control I have following property
7
by: Chuck Hartman | last post by:
I have a Windows service that requests web pages from a site using an HttpWebRequest object. When I try to request a page from an ASP.NET 2 site, I get a WebException with message "The remote...
5
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
4
by: Tony Johansson | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. Here we have a class called B One project...
5
by: tony | last post by:
Hello! This is a rather long mail but it's a very interesting one. I hope you read it. I have tried several times to get an answer to this mail but I have not get any answer saying something...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.