title: Check A Picturebox For A Specific Image Name
body: <p>I need to check a picturebox for a specific image. I know you can check if the picturebox is populated with an image...</p>
  
  <pre><code>If Not pictureBox.Image is Nothing Then
  
  Else
  
  End If
  </code></pre>
  
  <p>But in my case, I need to check this picturebox for an image I loaded earlier on in the process. </p>
  
  <p>Here is the current code I'm using to load the image...</p>
  
  <pre><code>PictureBox1.Image = My.Resources.TestImage1
  </code></pre>
  
  <p>I thought by using the following code I could check the image name, but this apparently does not work.</p>
  
  <pre><code>If PictureBox1.Image = My.Resources.TestImage1 Then
    'do something
  Else
    'do something else
  End if
  </code></pre>
  
  <p>Suggestions?</p>