展开全部
首先添加一个Timer1 控件(时钟控件)
Private Sub Form_Load()
Timer1.Enabled = True
Timer1.Interval = 50
Label1.Left = -Label1.Width
End Sub
Private Sub Timer1_Timer()
Label1.Left = Label1.Left + 50
If Label1.Left > Me.Width Then Label1.Left = -Label1.Width
End Sub
Private Sub Form_Load()
Timer1.Enabled = True
Timer1.Interval = 50
Label1.Left = -Label1.Width
End Sub
Private Sub Timer1_Timer()
Label1.Left = Label1.Left + 50
If Label1.Left > Me.Width Then Label1.Left = -Label1.Width
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询