廢話不多說,請直接往下閱讀全文吧!!
*********跑馬燈一********* 在label上跑
Private Sub Timer1_Timer() Label1.Left = Label1.Left + 30 If Label1.Left >= Me.ScaleWidth Then Label1.Left = -Label1.Width End Sub
Private Sub Timer2_Timer() Static A As Byte Const Word = "跑馬燈二" Text1.Text = Space(A) & Word A = A + 1 If A = 70 Then A = 0 End Sub
Private Sub Timer3_Timer() Static B As Byte Const Word = "標題跑馬燈" Me.Caption = Space(B) & Word B = B + 1 If B = 70 Then B = 0 End Sub
沒有留言:
張貼留言