Hi Roee,
try this: Make the control protected on the form that you inherit from.
I suppose, the designer follows the standard inheritance pattern:
When you define a derived object you may change the sub-objects that are
declared as protected or public and may not change those declared as private.
And in does not metter how you define a new derived object (a new form):
(i) you edit the VB/c# text; or
(ii) you do this with the help of a designer.
If a sub-object is private, a designer may not see it at all.
After all, a control is nothing more but a property of the form it is
placed on (a special one, but still a property).
You may see a private sub-object "phisically" (it is drawn), but no one
may access/override this "property" but its original owner.
I suppose also that it does not metter is a control made protected or
public (i mean, the designer of a derived form can edit it in both cases).
Declaring it public will have other consequences (as for any other property)
but does not metter w.r.t. designers of an inherited form.
HTH,
Dima.
[quoted text, click to view] "Stoitcho Goutsev \(100\) [C# MVP]" <100@100.com> wrote in message news:<eoxpT$$eEHA.332@TK2MSFTNGP09.phx.gbl>...
> It is by design I belive. You cannot modify the control that on the base
> form unless you don't provide special root designer for that new form class
> --
>
> Stoitcho Goutsev (100) [C# MVP]
>
>
> "Roee" <roeegr@hotmail.com> wrote in message
> news:8ece791f.0408061118.51581d43@posting.google.com...
> > Hi
> > I have a tab control that was written in my org. It inherites directly
> > from System.Windows.Forms.Control.
> > I use it in a window form (MainForm) and it works just fine. But when
> > I try to create a new inherited form (ChildForm) that inherites from
> > MainForm - I can't edit the tab control in ChildForm. I CAN see it,
> > but can't get the desinger to focus on it or any of its tabs (and so I
> > can't add it other controls).
> > The tab control is declared as protected / public in MainForm.
> >
> > Am I missing an attribute? A designer bug?
> >
> > Thanks