G
Guest
Hello,
Maybe I have been staring too hard at this problem for too long. I would
like to have an if statement like the following:
if(RefreshButton.Image == global::myProject.Properties.Resources.Refresh)
{
// refresh the browser....
}
Although this is syntactically correct, it is always evaluating to false.
Isn't there some kind of name property I can grab from the button image? It
seems the button has everything you would ever want to know about the image
on it except the actual name or resource of the image. Even so, I am not
sure what the right part of the statement would look like either.
Is there a simple solution to this I am not seeing?
Thanks,
Rob K
Maybe I have been staring too hard at this problem for too long. I would
like to have an if statement like the following:
if(RefreshButton.Image == global::myProject.Properties.Resources.Refresh)
{
// refresh the browser....
}
Although this is syntactically correct, it is always evaluating to false.
Isn't there some kind of name property I can grab from the button image? It
seems the button has everything you would ever want to know about the image
on it except the actual name or resource of the image. Even so, I am not
sure what the right part of the statement would look like either.
Is there a simple solution to this I am not seeing?
Thanks,
Rob K