queer error message
-
Hi! From time to time visual studio 2005 shows a queer error message: 'Code generation for property 'Cursor' failed. Error was: ''CursorConverter' is unable to convert 'System.Windows.Forms.Cursor' to 'System.ComponentModel.Design.Serialization.InstanceDescriptor'.' Maybe it happens because i use an own UserControl. But in fact this UserControl doesn't make anything with the property cursor ... :wtf: Is there anybody who knows this error message and can say what's wrong!?!? Thanks in advance! -- modified at 4:26 Tuesday 9th May, 2006
-
Hi! From time to time visual studio 2005 shows a queer error message: 'Code generation for property 'Cursor' failed. Error was: ''CursorConverter' is unable to convert 'System.Windows.Forms.Cursor' to 'System.ComponentModel.Design.Serialization.InstanceDescriptor'.' Maybe it happens because i use an own UserControl. But in fact this UserControl doesn't make anything with the property cursor ... :wtf: Is there anybody who knows this error message and can say what's wrong!?!? Thanks in advance! -- modified at 4:26 Tuesday 9th May, 2006
As far as I can tell, this seems to be a bug in Visual Studio (still present in VS 2008). A workaround that worked for me was to mark the property with an attribute to make it invisible to the designer, as follows:
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] // Bug in VS requires this workaround
public Cursor MyCursor{ get; set; } -
As far as I can tell, this seems to be a bug in Visual Studio (still present in VS 2008). A workaround that worked for me was to mark the property with an attribute to make it invisible to the designer, as follows:
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] // Bug in VS requires this workaround
public Cursor MyCursor{ get; set; }