N
Nathan Sokalski
I have a control with a property of type System.Drawing.Color. When I use
the control, the Property Grid in Visual Studio 2005 shows it, and even
gives me a dropdown list to select a color from. But it does not like the
value that gets put in the source. I get warnings like:
Generation of designer file failed: Cannot create an object of type
'System.Drawing.Color' from its string representation 'Green' for the
'BackgroundColor' property.
Am I not allowed to use colors as properties? Is there a property attribute
I need to add? It seems like a color should be a simple thing to add, since
there is only one value that needs specified in order choose it, and since
Visual Studio automatically gives me a list in the Property Grid to choose
from, I am assuming I am just missing something simple that I don't know
about. Any help would be appreciated. Thanks.
the control, the Property Grid in Visual Studio 2005 shows it, and even
gives me a dropdown list to select a color from. But it does not like the
value that gets put in the source. I get warnings like:
Generation of designer file failed: Cannot create an object of type
'System.Drawing.Color' from its string representation 'Green' for the
'BackgroundColor' property.
Am I not allowed to use colors as properties? Is there a property attribute
I need to add? It seems like a color should be a simple thing to add, since
there is only one value that needs specified in order choose it, and since
Visual Studio automatically gives me a list in the Property Grid to choose
from, I am assuming I am just missing something simple that I don't know
about. Any help would be appreciated. Thanks.