ashk1860

hi

I have created a userControl with several properties and I have all of them in properties panel. how can I make groups and order them in groups



Re: Visual C# General userControl question

Andrej Tozon

Hi,

use the Category attribute to assign your property in a category group:

[Category("My category")]
public string SomeProperty
{
...
}

Andrej






Re: Visual C# General userControl question

Figo Fei - MSFT

Yes,

CategoryAttribute specifies the name of the category in which to group the property or event when displayed in a PropertyGrid control set to Categorized mode.

For more information, see: http://msdn2.microsoft.com/en-us/library/system.componentmodel.categoryattribute.aspx