Hi everyone!

Is there a way to inherit the
System.ComponentModel.Design.CollectionEditor.CollectionForm form?

So, something like:

public class MyCollectionEditorForm :
System.ComponentModel.Design.CollectionEditor.CollectionForm
{
}


TIA,

Vlado

Re: Inheritance by Stoitcho

Stoitcho
Wed Jun 23 09:50:35 CDT 2004

hi you can't simply inherit from this class because as you see ot is
protected inside the CollectionEditor class.
However you can still inherit it if you follow their pattern


public class Foo: System.ComponentModel.Design.CollectionEditor
{
protected class Bar:
System.ComponentModel.Design.CollectionEditor.CollectionForm
{
public Bar(Foo editor):base(editor)
{
}
}

public Foo( Type type):base(type)
{
}
}

--

HTH
Stoitcho Goutsev (100) [C# MVP]


"Vlado B." <vlado.brlecic@sk.htnet.hr> wrote in message
news:cbbrau$fv7$1@ls219.htnet.hr...
> Hi everyone!
>
> Is there a way to inherit the
> System.ComponentModel.Design.CollectionEditor.CollectionForm form?
>
> So, something like:
>
> public class MyCollectionEditorForm :
> System.ComponentModel.Design.CollectionEditor.CollectionForm
> {
> }
>
>
> TIA,
>
> Vlado
>
>