Forum Discussion
No RepliesBe the first to reply
Related Content
- 15 years ago
- 4 months ago
- 7 years ago
- 2 years ago
Recent Discussions
- 3 months ago
How to compare images?
Solved2 years ago- 7 months ago
- 11 months ago
Hi,
How do I convert retrieved BackColor property to System.Drawing.Color?
This is the code I use to get the BackColor:
object backColorValue = textEdit.GetProperty<object>("BackColor");
But how do I convert it to type System.Drawing.Color? According to TestLeft Spy this is the class name of this property (ClrFullClassName)
Simple casting does not seem to work:
Color c = (Color) backColorValue;
Exception:
Additional information: Specified cast is not valid.