Property grid and parametrized category descryption.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

Is it possible to parametrize Property grid category?

I have class:

[DefaultProperty("Name")]
public class Test
{
private string name;

[Category("Misc"),
Description("Name")]
public string Name
{
get
{
return this.name;
}

set
{
this.name = value;
}
}
}

I need to parametrize line where I set category for Name property ( Category(<<my parameter>>) ). I prepare app where I want to change this string using configuration file for this e.g. xml file where I have category string in different languages.



--
Best regards,
Klaudiusz
.



Relevant Pages

  • Re: Property grid and parametrized category descryption.
    ... Is it possible to parametrize Property grid category? ... private string name; ... I prepare app where I want to change this string using configuration file for this e.g. xml file where I have category string in different languages. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Property grid and parametrized category descryption.
    ... Is it possible to parametrize Property grid category? ... private string name; ... string using configuration file for this e.g. xml file where I have ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: runtime.exec() How to copy all files ?
    ... public static void main(String args) { ... Because "*" is only special to the shell, and you are not invoking a shell. ... University of Leicester, Leicester, LE1 7RH, UK ...
    (comp.lang.java.programmer)
  • Attibutes
    ... I have a class, I want to be able to get the attribute of property Line2, ... Public Class Test ... Public Property Line2As String ... Dim t As New Test ...
    (microsoft.public.vsnet.general)
  • Re: where to define variable for whoel application?
    ... Public Class test ... Public Function descrlimitAs String ... Dim tmp As String = descr.ToString ... Sub Application_Start ...
    (microsoft.public.dotnet.framework.aspnet)