Working with VS.NET 2008, output type Class Library, Target Framework .NET 2.0
I've come up with a simplified scenario to ask this question.
I have a Button
user control, its a simple panel with a single big button on it.
I want to create a RedButton
control that extends Button
, and similarly, a GreenButton
.
e.g. Class RedButton : Button
Ideally, when I open up RedButton
's designer I will see the button that I created in Button
and be able to modify it, for example make it Red, or change font, etc.
I've tried to do this once, but when I open up the RedButton
's designer I just get a bunch of errors.
In this case, doing all this work programatically isn't an option for us, as in the real case this would be a pain.
Could someone shed some light on this? Thanks Very Much.