A
andie
Hi Guys,
Just wondering whether it is possible to convert a string into
System.Drawing.Colour object.
For example:
"Black" will match to System.Drawing.Color.Black, etc etc etc
I notice that it is possible using Color.FromName(string psName) in
..NET framework. Unfortunately, Color.FromName is not supported in .Net
Compact Framework.
The situation is as follow: We create an xml file that contains font
properties for all of the Controls. Then, we extract the color value
from the xml file and we need to convert this into Color object.
Regards,
Andie
Just wondering whether it is possible to convert a string into
System.Drawing.Colour object.
For example:
"Black" will match to System.Drawing.Color.Black, etc etc etc
I notice that it is possible using Color.FromName(string psName) in
..NET framework. Unfortunately, Color.FromName is not supported in .Net
Compact Framework.
The situation is as follow: We create an xml file that contains font
properties for all of the Controls. Then, we extract the color value
from the xml file and we need to convert this into Color object.
Regards,
Andie