K
K
how can I make below vb code work. I am getting error syaing "Operator
'=' is not defined for types 'System.Drawing.Image' and
'System.Drawing.Bitmap' ". Please can any friend can help me on this.
I am using Visual basic 2008 and trying to create image change in
picture box control with timer.
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer1.Tick
If PictureBox1.Image = My.Resources.oneimg Then
PictureBox1.Image = My.Resources.twoimg
ElseIf PictureBox1.Image = My.Resources.twoimg Then
PictureBox1.Image = My.Resources.threeimg
ElseIf PictureBox1.Image = My.Resources.threeimg Then
PictureBox1.Image = My.Resources.fourimg
ElseIf PictureBox1.Image = My.Resources.fourimg Then
PictureBox1.Image = My.Resources.oneimg
End If
End Sub
'=' is not defined for types 'System.Drawing.Image' and
'System.Drawing.Bitmap' ". Please can any friend can help me on this.
I am using Visual basic 2008 and trying to create image change in
picture box control with timer.
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer1.Tick
If PictureBox1.Image = My.Resources.oneimg Then
PictureBox1.Image = My.Resources.twoimg
ElseIf PictureBox1.Image = My.Resources.twoimg Then
PictureBox1.Image = My.Resources.threeimg
ElseIf PictureBox1.Image = My.Resources.threeimg Then
PictureBox1.Image = My.Resources.fourimg
ElseIf PictureBox1.Image = My.Resources.fourimg Then
PictureBox1.Image = My.Resources.oneimg
End If
End Sub