tabs on tabs

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am building a form containing a tab control with several pages, a few of
which contain other tab controls. This is allowed although the visibility of
the contained tab controls has to be managed at runtime by setting .Visible =
true or false depending on the currently selected page. This all works fine.
My question concerns design time. Is there anyway to hide these contained
tab controls at design time? When I add a tab control to a page and then
select another page, the tab control is still sitting there where I want to
work. It sure would be nice if MS would just fix the tab controls given the
problems with xp themes, backgound colors, etc. etc
 
JB said:
I am building a form containing a tab control with several pages, a
few of which contain other tab controls. This is allowed although
the visibility of the contained tab controls has to be managed at
runtime by setting .Visible = true or false depending on the
currently selected page. This all works fine. My question concerns
design time. Is there anyway to hide these contained tab controls at
design time? When I add a tab control to a page and then select
another page, the tab control is still sitting there where I want to
work. It sure would be nice if MS would just fix the tab controls
given the problems with xp themes, backgound colors, etc. etc

On the few occassions that I have done this I just jot down the Top property
of the inner TabControl and then move it down the screen until it is out of
my way. This allows me to put it back where it belongs when I am finished
relatively easily.

You can't just type the old Top value into the property box as that will
just "stretch" the control, but you can move the control with the arrow
buttons until the current Top property agrees with the old one.
 
Thanks for the comment. That is what I will do. I was hoping that there was
some other way to do this without shifting things around but apparently not.
I would use the tab in a tab a lot more often if it wasn't such a bother in
this regard.
 
Back
Top