TabPage Background Causing Winforms Designer to crash
Hello,
We have been having an issue with the .Net Framework (v4.8) Winforms Designer crashing after build and running of the application.
I have tracked it down to when the tabpage control has an background image applied.
Here is a sample of the code:
tabpage1.BackgroundImage = global::GloablResources.Properties.Resources.someImage;
The tab control is a custom control, but we do not override any OnPaint events.
The resx files are centralized to another DLL.
Here is the error presented to by the designer.
|at System.ComponentModel.ReflectPropertyDescriptor.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)|at System.ComponentModel.ReflectPropertyDescriptor.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)|at System.ComponentModel.ReflectPropertyDescriptor.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)|
| -------- | -------- | -------- |
||