>> How do you access controls that were added to a TabPage
>> in Designer? MS's documentation doesn't use Designer.
[quoted text clipped - 3 lines]
> control directly via that member field, just like any other control that
> is in the main form.
Thanks. I hadn't considered that Designer does exactly what the
example did - adds the controls to the main form. But that creates
another problem because I need multiple instances of the same
page.
What I really need is tabbed MDI so I'm off in that direction.
Gary
Peter Duniho - 30 Jul 2007 18:50 GMT
> Thanks. I hadn't considered that Designer does exactly what the
> example did - adds the controls to the main form. But that creates
> another problem because I need multiple instances of the same
> page.
>
> What I really need is tabbed MDI so I'm off in that direction.
How about making a custom control that derives from the TabPage class?
Your control would contain the controls as members within that class,
and could be accessed that way, as class instance members.
Tabbed MDI would probably work too. I guess it just depends on what
context you intend to use the controls/forms. If they are more like
documents or forms, I'd go with MDI, if they are more like tabs within a
form, I'd try to stick with the TabPage paradigm.
Pete