Hi,
You can do this by overriding PreFilterProperties or PostFilterProperties on the control designer. You can then remove the properties you need, or all of them, and then add the ones you need. You should be aware that by doing so some of the designer features might stop working as they rely on various properties being available on the control.
If your PreFilterProperties/PostFilterProperties method is not being called, you need to install aTypeDescriptorFilterService, which for FilterProperties, gets the IDesigner for the component, and if that designer is IDesignerFilter calls designer.PreFilterProperties(properties) and designer.PostFilterProperties(properties). Should also do the same for the other methods (FilterAttributes, FilterEvents,). I.e. something like this:
bool ITypeDescriptorFilterService.FilterProperties(IComponent component, IDictionary properties) {
if (component != null && properties != null) {
IDesigner designer = <get the designer>
if (designer is IDesignerFilter) {
((IDesignerFilter)designer).PreFilterProperties(properties);
((IDesignerFilter)designer).PostFilterProperties(properties);
}
}
return designer != null;
}
Martin