Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Inheriting form class: making MustInherit?
 

Inheriting form class: making MustInherit?

Is there any plan to classes inheriting from the Form class to be marked as MustInherit?

It's a bit of a nuisance that we can't do this, it'd be a really useful thing because then we can railroad other team members to be consistant in where they put code.  The designer kicks off at the moment when you try.

Paul Deen  Thursday, November 17, 2005 10:06 PM
Unfortunately not - supporting this would require a complete re-architecture of the designer.  When you design something in the designer, it instantiates the base class (e.g. the designer for 'form1' has created a System.Windows.Forms.Form), so if the base class is MustInherit/Abstract, it can't do this. 
Shawn Burke - MS  Thursday, November 17, 2005 10:29 PM
Unfortunately not - supporting this would require a complete re-architecture of the designer.  When you design something in the designer, it instantiates the base class (e.g. the designer for 'form1' has created a System.Windows.Forms.Form), so if the base class is MustInherit/Abstract, it can't do this. 
Shawn Burke - MS  Thursday, November 17, 2005 10:29 PM
Ok, thanks for that Shawn.  If you ever redesign the designer, keep it in mind :)
Paul Deen  Thursday, November 17, 2005 10:32 PM

You can use google to search for other answers

Custom Search

More Threads

• Accessing GroupName information from GetPropertyValues and SetPropertyValues in the custom SettingsProvider
• How to format money with $, commas and 2 decimal in textbox?
• Query regarding restricting modification of properties....
• design time and compile time code
• WinForms designer throws Exception when adding fillToolStrip component from DataSet without TableAdapters
• Checkbox in a Combobox
• Forms designer error when trying to display
• Group Box Value
• How to NOT copy designers assembly to PrivateAssemblies folder ?
• Custom menu items serialization ...