title: How do we show the previous image in a picturebox in VB.net?
body: <p>I have stored the images in an array, after that, I have added an if statement to check which image is currently showing, here is my code so far but there are no results. </p>
  
  <pre><code>Private Sub Button1_Click_1(sender As Object, e As EventArgs) Handles Button1.Click
          Dim img(3) As Image
          img(0) = My.Resources.bugs
          img(1) = My.Resources.discuss
          img(2) = My.Resources.flower
          img(3) = My.Resources.mask
          If PictureBox1.Image Is img(0) Then
              PictureBox1.Image = img(3)
          End If
      End Sub
  </code></pre>