It could just be my usage but I can't get the DefaultValue designer attribute to work for colors in vc++/vs2005.
I'm defining as follows.
public:
[System::ComponentModel::DefaultValue(System::Drawing::Color::typeid, "Orange")]
property System::Drawing::Color MyComponentColor;
When I add the control to my form it correctly displays in the designer with the exception that the MyComponentColor property is not set to Orange as I would have expected. I've seen plenty of VB & C# examples of this which all claim to work and I believe I have correctly converted them to VC++ above...? Anyone able to lend a hint at what I've done wrong?
Thanks