c# . if (image == Properties.Resources.image)
<p>I want to do an if stament on an image   </p>

<pre><code>          if (SortName.Image == Properties.Resources.RadioEmpty)
          {
              SortName.Image = Properties.Resources.Radio;
          }
          else
          {
              SortName.Image = Properties.Resources.RadioEmpty;
          }
</code></pre>

<p>but its on working any idea what I'm doing wrong ?
o.k additional information</p>

<p>1.</p>

<pre><code>          //SortName = A picture box
          //Properties.Resources.RadioEmpty = Resources\RadioEmpty.png
          //Properties.Resources.Radio = Resources\Radio.png
</code></pre>

<p>2.
Nope no errors</p>

<p>3.I wanted to use a custom image for a radio button. A have a picture box with the above code on click. RadioEmpty is the default so I check to see if the picturebox's image is the same as image form the Resources folder is so do code.</p>
