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. Change property´s value description

Change property´s value description

Scheduled Pinned Locked Moved C#
questiontutorial
5 Posts 3 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.
  • S Offline
    S Offline
    Sci_fie
    wrote on last edited by
    #1

    Hi everybody, I want to show a property´s value description other than the original in the PropertyGrid control. For example: I inherited from TextBox control and I want the Visible property´s value description be "Verdadeiro/Falso" instead of "True/False". Verdadeiro means True in portuguese, and Falso means False. Anyone know how can I do that? Thanks. :)

    M 1 Reply Last reply
    0
    • S Sci_fie

      Hi everybody, I want to show a property´s value description other than the original in the PropertyGrid control. For example: I inherited from TextBox control and I want the Visible property´s value description be "Verdadeiro/Falso" instead of "True/False". Verdadeiro means True in portuguese, and Falso means False. Anyone know how can I do that? Thanks. :)

      M Offline
      M Offline
      musefan
      wrote on last edited by
      #2

      well you can use xml tags to write descriptions. If you have VisualStudio or something similar, try writting '///' before the Visible funstion (which i think you will have to override) and it should give you a template. Or Look Here[^] I think that answers your question, right?

      Life goes very fast. Tomorrow, today is already yesterday.

      S 1 Reply Last reply
      0
      • M musefan

        well you can use xml tags to write descriptions. If you have VisualStudio or something similar, try writting '///' before the Visible funstion (which i think you will have to override) and it should give you a template. Or Look Here[^] I think that answers your question, right?

        Life goes very fast. Tomorrow, today is already yesterday.

        S Offline
        S Offline
        Sci_fie
        wrote on last edited by
        #3

        No, it doesn´t answer. But is not your fault, I forgot to mention that the value description is to appear in the PropertyGrid control.

        L 1 Reply Last reply
        0
        • S Sci_fie

          No, it doesn´t answer. But is not your fault, I forgot to mention that the value description is to appear in the PropertyGrid control.

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          Hi, IIRC what you want is in the DescriptionAttribute class. :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


          modified on Sunday, June 12, 2011 9:19 AM

          S 1 Reply Last reply
          0
          • L Luc Pattyn

            Hi, IIRC what you want is in the DescriptionAttribute class. :)

            Luc Pattyn [Forum Guidelines] [My Articles]


            - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


            modified on Sunday, June 12, 2011 9:19 AM

            S Offline
            S Offline
            Sci_fie
            wrote on last edited by
            #5

            Yes, this gave me a clue on how to do what I want. Thanks :)

            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