How to avoid error “Constructor on type 'MyType' not found” when inheriting a base class

后端 未结 2 563
小蘑菇
小蘑菇 2020-12-17 08:25

I have a Visual Studio 2010 Windows Forms app which includes a Form base class that other classes will inherit. The base class\' constructor takes a parameter that the child

2条回答
  •  一生所求
    2020-12-17 08:55

    You need to adjust your BaseForm output type, In the properties for the project, change the Output type from Windows Application to Class Library.

    ref: https://docs.microsoft.com/en-us/dotnet/framework/winforms/advanced/walkthrough-demonstrating-visual-inheritance

提交回复
热议问题