I am building an application to automate some testing. The status of
each of the tests is depicted by an image. This can either be an hour
glass, a cross or a tick and is initially set like so...
pictureBox1Status.Image =
global::TestApp.Properties.Resources.sandglass_48
If the test passes its image is changed to a tick using the same
method. All fairly simple.
When a timer expired I wanted to see which tests were still awaiting
results. The easiest way was to see if the image was still an hour
glass (instead of a separate status bool). I tried ...
if (pictureBox1Status.Image ==
global::TestApp.Properties.Resources.sandglass_48)
{
// change image to cross
}
Yep, the above test doesn't work. Its probably something simple and
silly but for the life of me I can't see what. I've tried all sorts,
like casting the image to a bitmap.
Could someone point out where my thinking is going wrong please.
Thanks in advance.
Andy