About Properties in Custom Controls

  • Thread starter Thread starter Smoke
  • Start date Start date
S

Smoke

Im sure i have asked this about 5 months ago, and someone sent me an interesting article about how to do what i need, but i lost
it..
Im developing a custom control and i would need to have nested properties... like for example the ones in DockPadding... you have a
main property and then u have "all, top, left, right..." bellow it.. or, like a normal "size" property, where u have "100,20" and
bellow it X and Y

Does anyone know how to do that?
Thanks for the help...
 
I think this is the article you are looking for:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/ht
ml/vsnetpropbrow.asp
Make Your Components Really RAD with Visual Studio .NET Property Browser
Expandable Properties and String Conversion: TypeConverters and the Property
Browser
One of the great features of the Visual Studio .NET property browser is the
ability to display nested properties, allowing for a more granular and
logical level of grouping than categories. Nested properties are also
available in both categorized and alphabetical sort mode. It helps keep
property lists compact-instead of both a Left and Top property, just a
Location property that is expandable into X and Y will do for a separate
entry.


--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan


Smoke said:
Im sure i have asked this about 5 months ago, and someone sent me an
interesting article about how to do what i need, but i lost
it..
Im developing a custom control and i would need to have nested
properties... like for example the ones in DockPadding... you have a
main property and then u have "all, top, left, right..." bellow it.. or,
like a normal "size" property, where u have "100,20" and
 
Back
Top