Duplicating Tabs

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RobKinney1

    #1

    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
  • chris martin

    #2
    Re: Duplicating Tabs

    > Here is a head scratcher:[color=blue]
    >
    > 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
    >[/color]

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


    Comment

    • RobKinney1

      #3
      Re: Duplicating Tabs

      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:
      [color=blue]
      >
      > Look into creating your own class that inherits from TabPage and implements
      > ICloneable. You'll need do a deep copy of the TabPage.
      >
      >
      >[/color]

      Comment

      Working...