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

dotnet windows forms designtime

group:

PropertyGrid questions


PropertyGrid questions Klaus Aschenbrenner
3/18/2005 1:21:43 PM
dotnet windows forms designtime:
Hi!

I've 2 questions regarding the PropertyGrid:

1.) How can I also display the events of an object (like in Visual Studio)
2.) How can I display my own control in the 2nd column of a property in the
PropertyGrid? (instead of a textbox or a combobox)

Thanks

Klaus Aschenbrenner
MVP Visual C#
www.csharp.at, www.anecon.com
http://weblogs.asp.net/klaus.aschenbrenner

Re: PropertyGrid questions mujdat
3/22/2005 12:00:35 AM
Hi Clause,
To implement tabs in property grid you must derive a class from PropertyTab
and use it in attribure PropertyTabAttrtibute
in your classes..
To draw your values, derive class from UITypeEditor override Paintvalue and
GetPaintValueSupported functions and use EditorAttirbute on your class.. i
dont know ,it is posibble to user custom control instead on painting it..






[quoted text, click to view]

AddThis Social Bookmark Button