Dim i As Integer
Private Sub Command1_Click()
i = O
ImageK.Width = Picture1.Width
ImageK.Height = Picture1.Height
ImageK.Left = 0
ImageK.Top = 0
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
If i > 2 Then
i = O
End If
If ImageK.Left > 0 Then
ImageK.Left = ImageK.Left - 100
Else
ImageK.Picture = ImageCat(i).Picture
If i > 0 Then
ImageBac.Picture = ImageCat(i - 1).Picture
End If
i = i + 1
ImageK.Left = Picture1.Width
End If
End Sub
帮解if语句里的代码 谢谢了