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 <--
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 <--