471,627 Members | 1,479 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

Duplicating Tabs

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
Jan 19 '06 #1
2 1182
> 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.
Jan 19 '06 #2
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

"chris martin" wrote:

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

Jan 20 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Dan Jacobson | last post: by
1 post views Thread by Bill Gates | last post: by
135 posts views Thread by Xah Lee | last post: by
15 posts views Thread by Tom Plunket | last post: by
35 posts views Thread by Ben | last post: by
1 post views Thread by XIAOLAOHU | last post: by

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.