I have a project containing a dll specifically for base class forms. The project has another dll for customized versions of these base class forms. I successfully created two base class forms and inherited them. Then I created a third base class form, but when I attempt to create a new form that inherits from this base class form, I get the following designer error shown below. The base class form is trivial (a form with 3 labels and4 standard controls).
If I create the inheriting form in the same project (dll) as the base class form, it works as expected. In all other respects, the code works as expected. I have read through many postings that seem related to this problem but none of the proposed solutions help (deleting obj folder, exiting and entering studio, removing static member functions, adding DesignMode test, etc) I will be happy to share the project and code demonstrating this problem to anyone who is willing to take a look.
|
One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. |
The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: DataDialogPhasor --- The base class 'System.Object' cannot be designed. Hide |
|
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager manager) at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager) at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager) at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)
|