Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing Property Description at runtime

Status
Not open for further replies.

sajidi99

Programmer
Jun 7, 2005
53
SE
Hello,

I have a property ColorOfCar on the property grid as follows:
[
Category("Car Body"),
Description("The color of the car"),
]
public string ColorOfCar
{
get
{
return this.colorOfCar;
}
set
{
this.colorOfCar = value;
}
}
I need to change the description attribute at runtime. (Say, change it to "The favourite color of the car" instead of the original one "The color of the car").
Can somone help me?

Thanks
 
I can't understand why you would want to do this.

How are you using this property at runtime?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top