Abstract UserControl problem
Posted on 2007-10-06
I am using C# 2.0 VS 2005. Windows Forms.
I have a base UserControl that I have made abstract, as I want to force concrete UserControls that inherit from this BaseUserControl to implement certain abstract methods.
My problem lies in the fact that I can't enter the designer and see the design time view of the UserControls. When Visual Studio attempts to render the UserControl it must automatically attempt to instantiate the base class so I get an error like:
The designer must create an instance of type 'Tools.ToolBase' but it cannot because the type is declared as abstract
How to get around this, or suggestions for this scenario?