UserControl inheritance

S

Stefan Hoffmann

hi @all,

I have a lot of similar looking pages (TabPage) with a lot of code
behind. I want to extract these page contents to user controls. Because
they have all the same basic layout and some code in common, I like to
have this inheritance chain:

public class AbstractContent : System.Windows.Forms.UserControl {}
public class ConcreteContent : AbstractContent {}

I have placed a SplitContainer on my AbstractContent. Now I want do
derive ConcreteContent from it, so that I can add controls to the
inherited SplitContainer.

This does not work:

http://support.microsoft.com/kb/813450

My goal is, that I can use the designer "as usual" for editing my
ConcretePage.

How can I do that?


tia.
--> stefan <--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top