all groups > dotnet windows forms designtime > march 2005 >
You're in the

dotnet windows forms designtime

group:

Category Text Color in PropertyGrid


Category Text Color in PropertyGrid ljlevend2
3/13/2005 12:49:03 AM
dotnet windows forms designtime: I am using a PropertyGrid to expose properties at runtime and I change the
line and background colors of the PropertyGrid to match the color theme of my
application. I would also like to change the color of category text (i.e.,
text that corresponds to the System.ComponentModel.Category attribute) since
the default color of gray is difficult to read on most backgrounds. It seems
that the category text is derived from the PropertyGrid.ViewForeColor
property, but I want to keep the PropertyGrid.ViewForeColor set to its
default value. In other words, I want to change the category text color
independent of PropertyGrid.ViewForeColor.

Is this possible?

Thanks,
Lance
RE: Category Text Color in PropertyGrid v-jetan NO[at]SPAM online.microsoft.com (
3/14/2005 7:03:52 AM
Hi Lance,

I have added a reply to you in
microsoft.public.dotnet.framework.windowsforms.controls group, please refer
my reply there. I will follow up with you there. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Re: Category Text Color in PropertyGrid VisualHint
3/31/2005 10:06:05 AM
Dear Lance,

I would like to bring to your attention a product that I am
developping, called Smart PropertyGrid. It is a complete replacement
for the well known Microsoft PropertyGrid. However it is not a designer
to be used in VisualStudio ;)

When released, this control will act as the standard one, discovering
properties of an object instance at runtime, but it will also add many
many features. A part of these features can be read at
http://www.visualhint.com since this library already exists for MFC.
Basically what it adds is:

* Complete customization of the grid's look.
* Each property can have a different look and feel.
* Multiline properties.
* Multiple values per property.
* a lot more...

Your request of being able to set a specific color for a category or
property label is of course a basic feature of the library.

If you need more information, don't hesitate to contact me. A new web
site has been created explicitely for the library that is written in C#
at http://www.propertygrid.net .

Best regards

Nicolas Cadilhac
VisualHint
AddThis Social Bookmark Button