It can be done with a custom type converter class. Create a class that
inherits from TypeConverter. Override the GetPropertiesSupported() method
and have it return true. Then override the GetProperties() method. Here
you can get a collection of property descriptors that your control exposes
by calling TypeDescriptor.GetProperties(value, attributes, true). You can
filter this collection to remove property descriptors that you want to hide
and return the filtered collection.
Set your control class to use your custom type converter with the
TypeConverter attribute.
--
Bobby C. Jones
"HJohn" wrote in message
news:31786768.1092400473289.JavaMail.jive@jiveforum1.autodesk.com...
> I created a custom control inheriting the Control Class. I added the
necessary properties for it and now I would like to hide some of the base
Class properties, BackColor for instance. I tried using the attribute
Browsable(False) on an override of the BackColor property, but didn't work.
I think I read somewhere that the base properties can be hidden from the
property box, but I can find it now. Can someone help me on this? Any
ideas or solutions will be greatly appreciated.