7,763
社区成员
发帖
与我相关
我的任务
分享
Option Explicit
Dim j As Double
Private Sub Form_Load()
Me.AutoRedraw = True
Me.ScaleMode = 3
Timer1.Interval = 100
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
Dim cx As Long
Dim cy As Long
cx = Me.Width / 30
cy = Me.Height / 30
Cls
Circle (cx, cy), 100, vbRed
Circle (cx + 100 * Cos(j), cy - 100 * Sin(j)), 2, vbBlue
j = j + 0.05
End Sub