Nesting tab object within another tab object

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

Guest

Hello:

I am trying to next a tab object within another tab object.

I have a master tab object with several tabs, let's call those tabs 1-4.

I need Tab #3 to have a tab object within it, so that I can have some
subtabs, so that within Tab#3, I can have tabs A-F. Right now if I try to
nest the tabs A-F into Tab #3, they will show up across all tabs, 1-4.

How does one get around that? So that, tabs 1-4 would only show up on Tab#3?

I really want to avoid subreports... long story.

Pepenacho
 
When you say you want to avoid subreports, I'm assuming that you meant
subforms? That's unfortunate, as that is exactly how it is done - you place
a subform on a tab page, and then you can place another tab control on that
subform. I have not heard of any other way to do it.

--
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com

The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.
 
pepenacho said:
Hello:

I am trying to next a tab object within another tab object.

I have a master tab object with several tabs, let's call those tabs
1-4.

I need Tab #3 to have a tab object within it, so that I can have some
subtabs, so that within Tab#3, I can have tabs A-F. Right now if I
try to nest the tabs A-F into Tab #3, they will show up across all
tabs, 1-4.

How does one get around that? So that, tabs 1-4 would only show up on
Tab#3?

I really want to avoid subreports... long story.

Assuming you meant to say subforms above, not subreports.

You cannot "embed" a TabControl on the TabPage of another, but you can
position a second TabControl where you want it and use the Change event of
the "parent" TabControl to make the "child" TabControl hidden except when a
certain page of the parent TabControl is being viewed.

This gives the same effect as an embedded TabControl, but is difficult to
work with in Design view since the child control is always visible. If you
don't mind having to move the child TabControl out of the way while working
on other TabPages it works pretty well.
 
Interesting idea, I think I actaully did that once in a class project, in
Studio.net.

I think I'm stuck with the subform - I was hoping there was a different way
out.

Thanks,
pepe
 
Back
Top