I have a implemented a form designer(DesignSurface). i use Nrefactory to parse the code into a codeCompileUnit. but if the code has the following line
Me.button1.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Bold)
the form designer errors when it is trying to load.
The type 'System.Drawing.FontStyle' has no property named 'Bold'.
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.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)
My TypeResolutionService returns the type "System.Drawing.FontStyle".
i don't know what i could be doing wrong .... this same thing happens with other enums. any ideals
Much Thanks
Leif