Error only when opening a Form

  • Thread starter Thread starter Moshe Singer
  • Start date Start date
M

Moshe Singer

Guest
When I open the "Error List" there is no error, but when I open the Form it displays the following error:

2

ErrorsObject reference not set to an instance of an object. Instances of this error (1) 1. Hide Call Stackat System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkPropertyDescriptor.SetValue(Object component, Object value)at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializePropertyAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement, CodePropertyReferenceExpression propertyReferenceEx, Boolean reportError)at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement) Top-level control cannot be added to a control.

when I open "view code" on the form, and "View code" on the Designer of the form, there are no errors, warnings, messages etc.

But when I right click on the form and I select "Open" or I select "view Designer" it shows me the above error messages.

Thanks in Advence

Continue reading...
 
Back
Top