Additionally, it provides security, threading support, and interoperability with ActiveX controls. Because so much of the infrastructure is provided by the base class, it is relatively easy to develop your own Windows Forms controls. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Please rate your experience Yes No. For more information about inheriting forms at design time using the Inheritance Picker dialog box and how to visually distinguish between security levels of inherited controls, see How to: Inherit Forms Using the Inheritance Picker Dialog Box.
In order to inherit from a form, the file or namespace containing that form must have been built into an executable file or DLL. To build the project, choose Build from the Build menu. Also, a reference to the namespace must be added to the class inheriting the form.
In the class definition, add a reference to the form to inherit from. Learn more. What is the base class form Windows Form? Ask Question. Asked 10 years, 10 months ago. Active 10 years, 10 months ago. Viewed 2k times. Improve this question. Mocco Mocco 1, 2 2 gold badges 10 10 silver badges 25 25 bronze badges. Add a comment. Active Oldest Votes. In those cases the designer will also not be able to create an instance of your base class.
There is a workaround for this using the TypeDescriptionProviderAttribute where you can give the designer a replacement class that it should instantiate instead.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.
Learn more. Why do base Windows Forms form class with generic types stop the designer loading? Ask Question. Asked 9 years, 2 months ago. Active 5 years, 6 months ago.
Viewed 6k times. Now when I do my second form which represents the type Foo , I can't access the designer, because I get this error: The designer could not be shown for this file because none of the classes within it can be designed. BaseClass' cannot be designed. Improve this question.
0コメント