Change DisplayName attribute for property

I am looking for a way to change the value of a DisplayNameproperty attribute at runtime. Is this possible in Windows Forms?

+1
source share
1 answer

Create your own TypeDescriptionProvider for your class and assign it at runtime to a single object (or the whole class) using TypeDescriptor . Also check out GetTypeDescriptor and GetProperties , and finally AttributeArray .

In general, creating a native type descriptor is not that difficult, but you need to carefully read msdn and make many attempts.

+2
source

All Articles