Windows Develop Bookmark and Share   
 index > Windows Forms General > Inherited Forms in 2.0
 

Inherited Forms in 2.0

Hai,

After converting a dot net 1.1 project to 2.0, its not possible to open the form designer of a class, if the class has inherited from another class. Is such a problem known to anybody?

When i try to open the editor i get the following error!

The variable 'components' is either undeclared or was never assigned.
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializer.DeserializeStatementToInstance(IDesignerSerializationManager manager, CodeStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager manager, String name, CodeStatementCollection statements)
Thanks n Regards
swingme
swingme  Friday, July 27, 2007 8:13 AM

Hi, swingme,

Could you please check if the following sentence exist in your codes.

Code Snippet

System.ComponentModel.Container components = null;

Hi, swingme,

Could you please check if the following sentence exist in your codes.

Code Snippet

System.ComponentModel.Container components = null;

Hallo Guo,

Thank you very much for your reply..I tried it and it works.

Regards
swingme
swingme  Tuesday, July 31, 2007 7:55 AM

You can use google to search for other answers

Custom Search

More Threads

• Drawing TabControl tabs (picture and code included)
• Multiple Button presses / clicks - C# winforms - reentry
• RichTextBox page breaks
• help with Saving Files and Folders (not using Dialog)...
• ScrollEventType not being raised
• How to load user picture from picturebox
• problem calling methode with delegate
• Using custom Event Arguments with a System.EventHandler
• Opacity and child Controls
• Can I have ComboBox editior for a DataGridView column with different set of items in drop down list for each row?