Duplicating Tabs

G

Guest

Here is a head scratcher:

I have 2 tab controls, upper and lower. LowerTabControl must be an exact
duplicate of UpperTabControl only with selected tabs from the upper.

For instance, I may want to duplicate tabPage1 and tabPage3 from upper and
project them to the lower.

Is there a way to do this? Do I have to use pointers ( I would rather not
since that makes the code unsafe and higher trust levels are required).

Thank you all for reading this. This has been a problem I have been
struggling with for some time.

Rob K
 
C

chris martin

Here is a head scratcher:
I have 2 tab controls, upper and lower. LowerTabControl must be an
exact duplicate of UpperTabControl only with selected tabs from the
upper.

For instance, I may want to duplicate tabPage1 and tabPage3 from upper
and project them to the lower.

Is there a way to do this? Do I have to use pointers ( I would rather
not since that makes the code unsafe and higher trust levels are
required).

Thank you all for reading this. This has been a problem I have been
struggling with for some time.

Rob K

Look into creating your own class that inherits from TabPage and implements
ICloneable. You'll need do a deep copy of the TabPage
 
G

Guest

Thank you for responding Chris. From your advice, I have been looking into
it. This may be the answer I have been looking for.

Thanks once again,

Rob K
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top