Tab control in one of the tabs of another tab control
One of my colleagues is working with a tab control. He has several tabs. He is trying to embed another tab control inside one of the tabs of the first tab control. He had placed the second tab control inside one of the tabs of the first tab control. But the problem is that the second tab control does not show up (unless one goes to the block diagram and double clicks the second tab control, only then does it shows up; when the vi is closed and reopened its again not there). I told him that I had never seen such functionality (a tab control inside another tab control) in any application but is it somehow possible. All this is required while the VI is not running and is being developed (of course it should work at run time, but this functionality must show while the VI is not running, i.e., this functionality should be non-programmatic. Is it possible. Thanks for your time.
Hi rashid, yes it is possible. See the attached example. I see no problems with it.Hope it helps.Mike
Thanks <a href="../view_profile?user.id=88992" class="auth_text" style="font-weight: bold;" target="_blank"> MikeS81</a>! Yes you are absolutely right. Your VI is working perfectly. I wonder what has my friend done to get such behaviour as he is getting. Strange! Thanks for the help!Have a very nice day!
Hi rashid, can you upload your vi, maybe someone found the proble...Tab Control Back Style Windows Themed Controls
A2003. I rather like the appearance I get with windows themed controls
turned on, but I'm running into an odd problem with tab controls.
When I set the back style to transparent, it really isn't transparent.
I'm finding instead of one text box or a button that I'd like to have on
the form "shining through" and displaying with all pages, it's as if the
tab control keeps the odd colour background it generates.
I originally developed the current app in question in A2003, but with a
different theme than I have right now on my PC and the colours, such as
the standard system colour -2147483633 for form backgrounds is a nice
In spite of the nice colour, however, instead of one text box that lists
information from another form, I must place one on each of the tab's
pages. Instead of one OK button and one cancel button, I must either
raise the blinking bottom of the tab control or put a copy of the two of
these buttons on each page. It's irritating.
Anyone else run into this and have a solution? TIA
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
...tab control inside another tab control
Is it possible to put a tab control inside another tab control. I tried
it several times, but for some reason this doesn't seem to work.
Can someone confirm this, or tell me what the trick is.
The only way I know to do this is to put a subform on the first tab control.
Then you can put your second tab control on the subform.
If you do this repeatedly, however, you will find the form loading rather
"Georges Heinesch" <email@example.com> wrote in message
> Is it possible to put a tab control inside another tab control. I tried
> it several times, but for some reason this doesn't seem to work.
> Can someone confirm this, or tell me what the trick is.
> > Is it possible to put a tab control inside another tab control. I tried
> > it several times, but for some reason this doesn't seem to work.
I don't recommend using nested tab controls for usability reasons. If
you need to put a lot of information on one form, just use a whole lot
of tab pages. If all the information doesn't fit inside tabs on a tab
control on a 800x600-fitting form, then you need to figure out how to
split the form up into many forms.
For mega-sized forms, if you absolutely must, you can do what a lot of
software vendors do for their "Options" dialog boxes--you can put a
listbox with a...Tab control within another tab control
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 another tab
control embedded into only one of the tab pages. The problem I am
getting is when I insert the sub section tab control into one of the
tabs from the main tab control, the sub section tab control appears in
every tab in the main tab control. Can anyone help? What do I need
to do so it only appears in one tab, not all.
As you found, you cannot place a tab control on one of the pages of another
However, you can place a subform on a tab control page, and the subform can
have its own tab control.
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Paul Mendez" <firstname.lastname@example.org> wrote in message
> 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 another tab
> control embedded into only one of the tab pages. The problem I am
> getting is when I insert the sub section tab control into one of the
> tabs from the main tab control, the sub section tab control appears in
> every tab in the main...Tab Control "Backstyle" Property Not Working With Windows Themed Controls
The tab control "backstyle" property refuses to work when set to
"transparent" in an A2003 database if Windows themes controls are
being used. I've seen references to this in a few places, but no
fix. If the A2003 database is opened using A2007 the property works
fine. Go figure. Does anyone know of a workaround?
...Syntax of control on tab controls
I have a form "frmturnover" on which there is asubform "subfrmturnover"
which has three tabcontrols say Page1, Page2 and Page3. There is control
"control2" on Page2 that when its is entered I want to check if it is the
same value as a control "control1" on Page1 and then show a pop up box if
they don't match. I can work out the code for the message box but I'm
getting a little lost on the syntax for referring to the controls on the
pages of the tab control.
I also want to check the value of Control2 on page2 with the vale of
control3 on a page1 of a subform "subfrmmain" on another form "frmmain"
can anyone point me in the right direction?
"Tony Williams" <email@example.com> wrote in message news:<firstname.lastname@example.org>...
> I have a form "frmturnover" on which there is asubform "subfrmturnover"
> which has three tabcontrols say Page1, Page2 and Page3. There is control
> "control2" on Page2 that when its is entered I want to check if it is the
> same value as a control "control1" on Page1 and then show a pop up box if
> they don't match. I can work out the code for the message box but I'm
> getting a little lost on the syntax for referring to the controls on the
> pages of the tab control.
> I also want to check the value of Control2 on page2 with the vale of
> control3 on a page1 ...Refs to controls on tab control
I'm really stumped. I have been able to get all of my references to all my controls with property nodes - even controls inside clusters for all of the controls on a vi front panel. However, when I move these very same controls onto a tab control I can't seem to figure out how to get these same references! I can only get the tab control ref. :smileyindifferent:
BenMessage Edited by Ben on 04-20-2007 05:01 PM
Cotrols on pages.JPG:
http://forums.ni.com/attachments/ni/170/243049/1/Cotrols on pages.JPG
...Control + Tab between subforms on tab control pages ACC 2002
What I am looking for is help trying to accomplish control + tab
exiting subform #1 on page #1 and entering the first control (main
form) on page #2. I've tried the following code, however it seems to
"fire twice", placing me at the first control on subform #2 on page
#3, totally skipping page #2. It seems to very briefly stop the
control on page two, but keeps going. Hope that made sense. Key
preview for subform is set to yes. This is a continous subform, so
options to leave subform on last control won't work. That's why I'm
trying to use control tab. I'd appreciate any suggestions.
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyTab And Shift = 2 Then
The problem is probably that you did not assign KeyCode = 0 in your handler.
Thus, after your code runs, the keypress is also processed normally.
On 13 Sep 2004 11:39:22 -0700, email@example.com (Brian) wrote:
>What I am looking for is help trying to accomplish control + tab
>exiting subform #1 on page #1 and entering the first control (main
>form) on page #2. I've tried the following code, however it seems to
>"fire twice", placing me at the first control on subform #2 on page
>#3, totally skipping page #2. It seems to very briefly stop the
>control on page two, but keeps going. Hope that made sense. Key
>preview f...Can a Combo Box control a Tab Control, like an Enumerated Ring control can
Is there any way to have a Combo Box control a Tab Control. An Enumerated Ring control can if all the names match "Exactly", question is can a Combo Box do the same, especially within an Event Structure?
I haven't been able to figure it out. Enclosed is a test VI that has an enumerated ring example, and a combo box with the same data. Thanks for your help...
Test Tab Control .vi:
http://forums.ni.com/attachments/ni/170/215375/1/Test Tab Control .vi
A tab control can be treated like an enum, so your question comes down to: "Can I map a ...Getting XP look with tabbed dialog control and tab strip control
I know how to use a manifest file to get the XP look for the Windows Common
Controls 6 group of controls but I also have both the tabbed dialog and tab
strip controls in my app and I want those to take on the XP look as well.
Does anyone know how?
Also, while I am able to get the XP look through a manifest file in my app's
folder I should be able to do this without the file having to be in the
app's folder. I've read it has to do with compiling with a resource file
but I don't know how to do that. Can anyone offer any assistance?
I have 3 groups of controls each in their own frame and all are sitting on a
page in a tab control.
I want the user to be able to tab between the controls in each frame; at the
moment tabbing can move the cursor to another frame, which is a bit
disconcerting when the user is filling out some address fields.
I've played around with the tab index properties manually and even tried to
set them using VBA.
However if I do this I find some controls actually disappear! To correct
this I have to use Auto Order.
Apart from this the app is working nicely but little things like are a bit
of a pain and the first thing that most people will complain about...
Has anyone encountered this and come up with a solution?
...Maximum Number Of Controls On A Tab Control
Is there a "best practice" maximum number of controls that can be
loaded on to a tab control before things start getting messy and
sluggish? I'm asking for a "best practice" maximum number across all
tabs and not the maximum number that is theoretically possible.
I figure that trying to add lots of controls to lots of tabs must
affect performance at some point.
Any help is appreciated.
> Is there a "best practice" maximum number of controls that can be
> loaded on to a tab control before things start getting messy and
> sluggish? I'm asking for a "best practice" maximum number across all
> tabs and not the maximum number that is theoretically possible.
> I figure that trying to add lots of controls to lots of tabs must
> affect performance at some point.
> Any help is appreciated.
There is a maimum number of controls on a Form. Not sure about a TabControl.
Think of it this way. A TabControl is just a handy way of toggling the
visibility of a bunch of controls all at the same time. It likely has almost no
affect on performance at all. Certainly not any that I have been able to
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
On 9 Mar 2007 18:35:53 -0800, "Wayne" <firstname.lastname@example.org>
In some applications tab controls contain subforms. If things get
sluggish I typically only...Tab Control and Rectangle Hiding Controls
I'm trying to change the back colour of a tab control in Access 2010 by
using a rectangle.
I've selected the tab control (not an individual page) and pasted the
rectagle (solid with required colour).
I then send the rectangle to the back and then the tab control to the back.
The problem is that most (but not all controls remain hidden) on each tab.
Subform and list boxes are visible, but labels and text boxes aren't.
I've done this before in another application, but can't remember how I did
On Thursday, June 20, 2013 1:57:59 AM UTC-5, Bob Darlington wrote:
> I'm trying to change the back colour of a tab control in Access 2010 by
> using a rectangle.
> I've selected the tab control (not an individual page) and pasted the
> rectagle (solid with required colour).
> I then send the rectangle to the back and then the tab control to the back.
> The problem is that most (but not all controls remain hidden) on each tab.
> Subform and list boxes are visible, but labels and text boxes aren't.
> I've done this before in another application, but can't remember how I did
> Any ideas?
> Bob Darlington
Not sure I understand your issue. Anyway, check in properties and set the background to transparent.
...How can I set the tab order of text box controls on each page of a tab control?
I need to be able to select the tabbing order of individual controls
on a single page of a tabbed control. How??
In LV 6.1 an up you should be ablel to right click on the edge of the
tab control when the tab-page in question is selected.
The bttom selcetion in the pop-up is "Reoder controls in page..."
selecting this option will switch editing modes to allow you to
specify the ored, just like in a cluster.
I seem to remeber in older versions you had to drag the tabable
controls off the tab control, specify the tabbing oder and then drag
them back on. The oldest version I have on ...Control Container inside a Tab Control
Is there a generic container that can go in a tab control? I cant seem
to get a tab control (which can hold many types of other controls) to
be contained by another tab control.
My main form uses a tab control (8 pages). On each page I would like to
have a few groups of controls (no tabs in the group, just buttons,
combos etc). I thought the tab would be a great container, but I cant
put it on the 'main' tab control.
Any ideas? (Currently I'm using a naming scheme)
No. There is no control array, and you cannot insert a tab control on a page
of another tab control.
You can put a subform on the page of a tab control, and the subform can
contain its own tab control.
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
<email@example.com> wrote in message
> Is there a generic container that can go in a tab control? I cant seem
> to get a tab control (which can hold many types of other controls) to
> be contained by another tab control.
> My main form uses a tab control (8 pages). On each page I would like to
> have a few groups of controls (no tabs in the group, just buttons,
> combos etc). I thought the tab would be a great container, but I cant
> put it on the 'main' tab control.
> Any ideas? (Currently I'm using a nam...copying controls from a form to a tab control
I have copied approx 20 controls from a form to a tab control for
reasons of space.
i now cannot run code triggered by the events of these controls.
for example, the following will not trigger the message box when
Private Sub cboA_Change()
MsgBox "combo A changed"
the controls are all disabled and are only enabled when the previous
control has a value set.
Instead of copying and pasting, try cutting and pasting. If you copy and
then paste, the original controls stay on the form so when you paste the new
controls get new names and not the names you chose which means that even if
you then delete the original controls, the new controls will still have new
names and therefore no events associated with them.
cboA gets copies and pasted.
Access changes the name to something like Combo294
You then delete cboA.
Your Module now has cboA_Change() but there is no control named cboA
Combo294 now exists, and looks the same, but has no events associated with.
"winshent" <firstname.lastname@example.org> wrote in message
> I have copied approx 20 controls from a form to a tab control for
> reasons of space.
> i now cannot run code triggered by the events of these controls.
> for example, the following will not trigger the m...Valve control
Hello, I am still trying to figure out a method of controlling a discharge valve for compressor testing. The valve is controlled by a slider, but when it hits a certain point of being closed, the compressor surges. At that surge point, I want the user to click a button, and then have the valve slowly open while the data is being sent to a file. This way, the data is recorded and the valve opens to prevent damage to the compressor all at the click of one button. I have the VI up and running, all except for the opening part of the valve. I have included a simple example of where I am going with the valve control. Any advice would be appreciated, for then I can implement that code for the valve opening into the rest of my programming.
...tab control strict typedef hides controls
"Has the issue of no typedef tabs been resolved in LV7? I am modifying
a LV61 vi and severely broke the panel trying to convert a tab to a
typedef. I was able to customize, however there was a compile/save
error and all the embedded controls on the tab pages became hidden and
In my disgust, I had deleted all copies of the offending vi. I believe
my problem must have been, primarily, a corrupted compile/save.
...How to control the tab control using event structure?
I am using tab control and event structure in the program.
When i run the application event is not happening for the active page.
When user switches from active page to the other page then event is taking place for all pages
So, how to get the event trigger for the active page when the application is started
For more clarification i am attaching the code "Test Control Tab using Event Structure.vi"
Test Control Tab using Event Structure.vi:
http://forums.ni.com/attachments/ni/170/288159/1/Test Control Tab using Event Structure.vi
You have a basic misunderstanding of dataflow. Maybe you should start with some tutorials or study some of the examples that ship with LabVIEW.
- The event structure belongs inside the while loop, and not vice versa. RIght now, the event structure only runs exactly once and never again.
- If the stop is pressed first, the VI will stop. Game over.
- If the tab control is changed (from any state to any other state!), the inner loop will spin forever as fast as the CPU allows, either executing one or the other case. It just reads the tab terminal to decide which case to execute. Changing tab never triggers any events. The VI is trapped inside the event until stop is pressed to stop the VI.
you were closer to a reasonable program in the other thread:
<a href="http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=287905"...Re: a2k
> I have 3 groups of controls each in their own frame and all are
> sitting on a page in a tab control.
> I want the user to be able to tab between the controls in each frame;
> at the moment tabbing can move the cursor to another frame, which is
> a bit disconcerting when the user is filling out some address fields.
> I've played around with the tab index properties manually and even
> tried to set them using VBA.
> However if I do this I find some controls actually disappear! To
> correct this I have to use Auto Order.
> Apart from this the app is working nicely but little things like are
> a bit of a pain and the first thing that most people will complain
> Has anyone encountered this and come up with a solution?
A reply to my own post from some time ago, since I have just solved this
one. If anyone encounters this the problem is with the frame controls. You
simply don't need them in this kind of scenario. A simple box drawn around
groups of controls serves the same cosmetic purpose and all of a sudden it
was very easy to re-order the tab index of all controls. I hope I am
correct in saying that the frame control should only be used in conjunction
with option button groups.
...How do you refer to a control on subform inside a tab control?
(Using Access 2000)
I have two tables, similar to Customers and Orders. (Not an exact
parallel, but works for this example.)
On a form showing customer data, there is a tab control. One of the
tabs has a subform showing order data (in datasheet view). On the same
tab there is an unbound textbox (next to the datasheet). I placed a
command button that runs code to add the QTY from each line in the
subform and put the sum in the unbound textbox. That works, but when
you edit the QTY the total does not change until you click the button
again. I tried using AfterUpdate on the QTY field in the subform, but
an error always occurs when I try refer to the textbox.
I have tried about 9 different implicit/explicit references to the
textbox, but the procedure is just not recoginzing it.
Is it possible to refer to a control within the tab control of a form
from a subform inside the same tab control? How?!
Any help is greatly appreciated!
From code in the Form embedded in a Subform Control, to refer to a Control,
txtX, on the main (parent) Form:
Me.Parent!txtX = <the value you want to set>
For Controls on a Tab, you don't have or need a reference to the Tab Control
or Tab Page.
Microsoft Access MVP
"Joshua Ammann" <email@example.com> wrote in message
> (Using Access 2000)
> I have two tables, similar to Customers and Orders. ...Control visiblilty of a text box on a Tab Control
Hey, thanks for reading my question.
I'm using a combo box to control the visibility of a text box. When I
make a change to the combo box it will set the visible property to
true on a text box. When I had these objects not on the Tab Control
everything worked great. Now with these object on the tab control and
I open the form the vicinity works but when I change the combo box
which set the visibility nothing changes.
What am I missing? Any one got any suggestions.
N. Graves wrote:
> Hey, thanks for reading my question.
> I'm using a combo box to control the visibility of a text box. When I
> make a change to the combo box it will set the visible property to
> true on a text box. When I had these objects not on the Tab Control
> everything worked great. Now with these object on the tab control and
> I open the form the vicinity works but when I change the combo box
> which set the visibility nothing changes.
> What am I missing? Any one got any suggestions.
Is your code behind your combobox still there? When you move an object
(cut and paste) to a tab control the event procedure code is "lost". You
may note that your Event Procedure is not there anymore in your combobox
properties.. but when you click on the build button it will bring up the
code... and upon returning the Event Procedure reappears!
An Access quirk:)
Is it possible that your text box is behind the tab control?
Peter De Bae...Basic Tab Control Question
In my Access 97 database I have a form with a tab control that has about 150
controls on it (no subforms). When I add another tab and click on it (in
both design and form view) all I see are the controls from the first tab.
Why is this? Should I not be seeing a blank tab so that new controls can be
added on it? Any help would be much appreciated. Am I missing something?
Mark C wrote:
>In my Access 97 database I have a form with a tab control that has about 150
>controls on it (no subforms). When I add another tab and click on it (in
>both design and form view) all I see are the controls from the first tab.
>Why is this? Should I not be seeing a blank tab so that new controls can be
>added on it? Any help would be much appreciated. Am I missing something?
Sounds like you just positioned the controls on top of the
tab control instead of creating the controls inside the tab.
You can either select all the controls and cut them. Then
select the first tab and paste them back, or delete all the
controls and select the first tab before recreating them.
MVP [MS Access]
Problem solved. Its been a few years since I had to use the tab control.
I'll make sure this one gets entered into the old memory bank.
"Marshall Barton" <firstname.lastname@example.org> wrote in message
> Mark C wrote:
>>In my Access 97 database I have a form with a...Form layout question: How move controls in a Form to (in) a Tab Control?
I created a form with a lot of controls on it. (textboxes, pulldown's
Because the form is a little full I want to move the controls to
different pages on a tab control.
HOW can one do this?. If I drag them the tab control is not
'activated' if the mouse pointer is above the tab control.
(if one creates a new textbox and place it on the tab control this tab
control page turns black to show it's activated)
This does not work while dragging??!
Thanks in advance, Eddie Smit
Holland. (The Netherlands)
>Because the form is a little full I want to move the
>controls to different pages on a tab control. HOW can one
Cut and Paste :)
You'll need to relink any code behind the control by going to Properties
-> Event Procedure and clicking on the ... and selecting what type of
Event Procedure it was (code, macro, expression builder)
(Email mangling obvious)
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Before you cut and paste, make sure the backround of the tab control is "Normal"
and npt "Transparent" or you will paste the controls to the form!
A Resource for Access, Excel and Word Applications
� Design and basic development for new applications
� Additions, Modification...