Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Failure to load designer due to VS2005B2 fault
 

Failure to load designer due to VS2005B2 fault

The following (or a variation on a theme) happens with rather predictable regularity:

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. Clicking on each error will take you to the line of code that caused it.

Object of type 'System.Drawing.Size' cannot be converted to type 'System.Drawing.SizeF'.

Hide

at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)
at System.ComponentModel.Design.InheritedPropertyDescriptor.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)


Any suggestions on how to get around this problem would be enormously appreciated.

Cheers, TC
Tony Crider  Wednesday, August 24, 2005 8:21 AM
I have seen this error also...It seems that happens when you try to run/debug your program with the designer open...work around is to close the designers prior to running/debugging
DMan1  Friday, August 26, 2005 6:27 PM

You can use google to search for other answers

Custom Search

More Threads

• derive from base Control, why do child controls not render correctly?
• Timeline control Anybody want to help?
• Explicitly implemented interface members available via the designer?
• toolbar inheritance
• Splash Screen Controls becoming transparent at load time.
• hot to turn on ShowFocusCues
• Conditional Compilation and the Windows Form Designer
• Re-render the control
• How to make the linklabel back color as forms backcolor.
• Progress bar with nice gradient vertical shading