If PictureBox1.Image = "a.png" Then
PictureBox1.Image = My.Resources.b
Else
PictureBox1.Image = My.Resources.a
End If
It won't work. How do i make this thing working? It shoud check if the picture box is showing the picture a , if yes then make it showing picture b.
Public Class Form1
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
If PictureBox1.Image Is My.Resources.b Then
PictureBox1.Image = My.Resources.a
PictureBox1.Refresh()
Else
PictureBox1.Image = My.Resources.b
PictureBox1.Refresh()
End If
End Sub
End Class
Thats the complete code