Private strcaption As StringPrivate Sub Form_Load() strcaption = Label1.Caption Timer1.Interval = 500 Timer1.Enabled = True End SubPrivate Sub Timer1_Timer() Dim strShow As String Dim i As Integer Static index As Integer index = index + 1 If index > Len(strcaption) Then index = 1
End If For i = 1 To index strShow = strShow & " " Next i strShow = strShow & Left(strcaption, Len(strcaption) - index) Label1.Caption = strShow End Sub
pcwak(书剑狂生) ,你的这种效果好像不是很好,能不能将label的位置固定
Label.top=Label.top-10
end if
Private strcaption As StringPrivate Sub Form_Load()
strcaption = Label1.Caption
Timer1.Interval = 500
Timer1.Enabled = True
End SubPrivate Sub Timer1_Timer()
Dim strShow As String
Dim i As Integer
Static index As Integer
index = index + 1
If index > Len(strcaption) Then
index = 1
End If
For i = 1 To index
strShow = strShow & " "
Next i
strShow = strShow & Left(strcaption, Len(strcaption) - index)
Label1.Caption = strShow
End Sub