B
Bill Angus
I have a collection of controls that represent an address in my project. I wanted to make them into an address control because lots of the business objects I am working with have addresses.
I got a nice set of control that visually represent the data I need -- but when I aggregated the controls and code into a VB user-control, the designer gives me the pink screen of death and reports OBJECT REFERENCE NOT SET TO A VALID INSTANCE OF AN OBJECT,
Since the debugger will not parse code inside a user-control, I can't find the object which is giving me problems.
her is the message I get...
One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.
Object reference not set to an instance of an object.
Hide
at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)
I got a nice set of control that visually represent the data I need -- but when I aggregated the controls and code into a VB user-control, the designer gives me the pink screen of death and reports OBJECT REFERENCE NOT SET TO A VALID INSTANCE OF AN OBJECT,
Since the debugger will not parse code inside a user-control, I can't find the object which is giving me problems.
her is the message I get...
One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.
Object reference not set to an instance of an object.
Hide
at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)