1个回答
展开全部
Dim i As Integer, l As Integer
Dim r As Boolean
Private Sub Form_Load()
Form1.Scale (-200, 200)-(200, -200)
l = 1
i = 1
r = False
End Sub
Private Sub Timer1_Timer()
DoEvents
If r = False Then
Timer1.Interval = i
i = i + l
Form1.Cls
Form1.FillStyle = 0
Form1.FillColor = vbRed
Circle (0, 0), i, vbBlue
If i >= 200 Then
r = True
End If
ElseIf r = True Then
Timer1.Interval = i
i = i - 1
Form1.Cls
Form1.FillStyle = 0
Form1.FillColor = vbBlue
Circle (0, 0), i, vbBlue
If i <= 1 Then
r = False
End If
End If
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询