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