展开全部
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Sub Command1_Click()
For i = 0 To 100
Shape1.Move Shape1.Left + 30
If Shape1.Left + Shape1.Width > Shape2.Left Then
Shape1.Visible = False
Exit For
End If
Sleep 10
Next i
End Sub
这只是一个思路……
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询