These classes are not marked as sealed (C#'s equivalent to final), and can
be derived from.  But they do not support visual inheritance.

You can only use visual inheritance on Forms and UserControls.  This should
come as no great surprise because these are the only kinds of control you
can edit visually anyway.  So in other words, the Forms Designer supports
the exact same range of types for Visual Inheritance as it does for normal
editing.

If you want to make controls that derive from controls which are not Form or
UserControl based, you just have to do it in code.  The simplest starting
point is to create a new Custom Control class and then in the source code it
produces, change the base class to be whatever you wish to derive from.


--
Ian Griffiths
DevelopMentor

----- Original Message -----
From: "Reggie Burnett" <[EMAIL PROTECTED]>


> Can objects like Panel be visually inherited with designer support?  When
I
> am using the wizard to create a inherited user control, I browse to
> c:\winnt\microsoft.net\framework\vxxxxx\System.Windows.Forms.dll and
choose
> it but no controls come up that can be visually derived from.
>
> What am I missing?  Are these all marked final or something?

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to