吧务
level 13
Option Explicit
Dim P$
Private Sub Form_Load()
P = "向左"
Timer1.Interval = 20 ' 定时器 Timer1 的参数
End Sub
Private Sub Timer1_Timer()
If P = "向左" Then
Text1.Left = Text1.Left - 15
If Text1.Left <= 0 - Text1.Width Then P = "向右"
Else
Text1.Left = Text1.Left + 15
If Text1.Left >= 0 + Me.Width Then P = "向左"
End If
End Sub
2015年05月29日 16点05分
5
谢谢了
2015年05月29日 16点05分