$BlogRSDURL$>
This blog will describe some of the learning experiences that I have with .NET, some personal projects that I'm working on, and whatever other topics tickle my fancy.
My Blog LinksSite Links
Currently ReadingBlogroll
Archives
Tools |
Wednesday, September 22, 2004.NET: Using the PropertyGrid In Your App
Here's a cool project in C# that shows how to use the property grid in your own WinForms application. This is cool because it allows you to change properties on an object in a standard way, including changing the appearance of controls at runtime.
However, you can use this for other objects too, as long as they expose properties and use the appropriate attributes to hide and show them in the property grid, like the Browsable attribute. Also, it uses custom type editors, so that you can use appropriate editors for certain types of properties, like Color. It behaves very similar to the property browser in Visual Studio.
Comments:
Post a Comment
|