all groups > dotnet windows forms designtime > january 2006 >
You're in the

dotnet windows forms designtime

group:

Changing the DescriptionAttribute value


Changing the DescriptionAttribute value Mario Vázquez
1/25/2006 5:03:12 PM
dotnet windows forms designtime: How can I change the value of the DescriptionAttribute depending on the
CultureInfo context?

[ Description( "Description for the property at design-time") ]
public object TestProperty
{
get{ return this.testProperty; }
set{ this.testProperty = value; } string testProperty;
}

I've try to change the string in the attribute accessing an item from a
resource file, but attribute values only accept constant values.

Thanks,
Mario Vazquez



Re: Changing the DescriptionAttribute value Mario Vázquez
1/27/2006 12:00:00 AM
Aha, I'll try.
Thanks

PD: I'm not any famous singer (what a pitty!)


"jokiz" <joeycalisay@gmail.com> escribió en el mensaje
news:1138351398.878970.220240@g47g2000cwa.googlegroups.com...
[quoted text, click to view]

Re: Changing the DescriptionAttribute value jokiz
1/27/2006 12:43:18 AM
subclass the DescriptionAttribute class whose constructor parameter you
will pass the resource key. Override the Description property to
return the string obtained from the resource file.

OT: are you the idol singer last year? :p
AddThis Social Bookmark Button