Adding a common componet to multiple pages...

  • Thread starter Thread starter Dave Parry
  • Start date Start date
D

Dave Parry

Hi,

I have a common control that I want to add to two tab control pages. When I
do this it only shows up on one tab page (ie. the last page it was added
to).

I've noticed in the C# code that the control count for the page is correct
when added to the first tab page, however when I add it to the second tab
page, the control count is decremented, which is why I am not seeing my
common control on both pages.

Can anyone explain why it can only belong to one page? and is there a simple
way to achieve what I am trying to do?

Thanks,

Dave
 
actually this has been documented in MSDN under ControlCollection.Add :(

would be nice if someone knows an easy workaround for this, or should I just
create two controls and synchronize the info myself...
 
Back
Top