Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. queer error message

queer error message

Scheduled Pinned Locked Moved C#
csharpvisual-studiodesignai-codingjson
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    occcy
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • O occcy

      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

      D Offline
      D Offline
      delftred
      wrote on last edited by
      #2

      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; }

      O 1 Reply Last reply
      0
      • D delftred

        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; }

        O Offline
        O Offline
        occcy
        wrote on last edited by
        #3

        Cool! A response after more than three years :-D I thought I am the only one who has this problem, so I've learned to live with this Bug. But now I will try this workaround. Many thanks! occcy

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups