Goodicore
04-16-2015, 03:49 AM
Hi, I need some help on a picture box and switching between 2 images
I have added to images to my resources and I want to switch between the 2 images once clicking on them
I have the below code and when I click it changes the image but how can I hange back to original when I click again?
Private
Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
PictureBox1.Image =
My.Resources.Mario
End Sub
End
Class
I have added to images to my resources and I want to switch between the 2 images once clicking on them
I have the below code and when I click it changes the image but how can I hange back to original when I click again?
Private
Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
PictureBox1.Image =
My.Resources.Mario
End Sub
End
Class