Property of an user control

PROKA

Junior Contributor
Joined
Sep 3, 2003
Messages
249
Location
Bucharest
I have built an user control and I have a property named "LineWidth"

what I want is that this property to appear under "Appearance" and not under "Misc" in the properties window.

I found a book it says to use <Category("Appearance"),Description(" ... ")> before the "Property" keyword, but it doesn't work, I think it was used in .net 1.0
 
When you say it doesn't work does it give any errors or just not appear where you expect?
Also you will need to import the System.ComponentModel namespace for those to work.
 
Back
Top