Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Property value is not valid - Ambiguous match found
 

Property value is not valid - Ambiguous match found

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?
Doomtrain  Thursday, March 15, 2007 6:32 AM

Hi Doomtrain,

I think that forum is more appropriate place for your question.

Dmitry Pavlov  Thursday, March 15, 2007 12:00 PM

You can use google to search for other answers

Custom Search

More Threads

• Open Collection Editor dialog from control's smart tag function
• Property and Displaying own Type in the Designer's Property Window
• Problems with the "(Name)" Property when I implements IExtenderListService
• Ambient Properties Question
• TYPE_E_LIBNOTREGISTERED
• visibility of controlls while editing.
• NullReferenceException using CodeDomComponentSerializationService
• designer on root component
• IS it possible to make a triangle shaped button?
• docking during design