谁能告诉我问题在哪?
我画了一个圆球,用两个时钟控件控制它跳动
Interval设为50,可怎么只能看到图,但不会跳动的?
代码如下
Private Sub Timer1_Timer()
If Shape1.Top >= 500 Then
Shape1.Top = Shape1.Top - 200
Else
Timer1.Enabled = False
Timer2.Enabled = True
End If
End Sub
Private Sub Timer2_Timer()
If Shape1.Top <= 1000 Then
Shape1.Top = Shape1.Top + 200
Else
Timer1.Enabled = Ture
Timer2.Enabled = False
End If
End Sub