|
Hello,
i have no topic found about this special problem. I've written a CustomControl inherited from CompositeControl. I want to override the BackColor property for example, with an own struct.
public new MyColors BackColor {get,set}
The code compiles and works fine. But the VS designer has some problems. I've written a TypeConverter, a UITypeEditor and a Windows Forms Dialog to set and display the properties in the propertygrid properly. On properties which are not inherited it works fine. If i want to set BackColor or ForeColor (inherited from CompositeControl and hidden with the "new" keyword) i get my own dialog, but instead of setting the property the Studio Says "Property value is not valid" the details button shows "Ambiguous match found". Is there any way to solve this problem without renaming the property?
|