level 10
小东ziliao
楼主
Public Class Form1
Private Sub form1_load()
Timer1.Interval = 0
End Sub
Private Sub command1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Interval = 200 '自动
End Sub
Private Sub command2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Call mymove() '手动
End Sub
Private Sub timer1_timer()
Call mymove()
End Sub
Sub mymove()
Label1.Left = (Label1.Left + 20)
If Label1.Left > Me.Left Then Label1.Left = 0
End Sub
End Class
2014年11月29日 04点11分
1
Private Sub form1_load()
Timer1.Interval = 0
End Sub
Private Sub command1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Interval = 200 '自动
End Sub
Private Sub command2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Call mymove() '手动
End Sub
Private Sub timer1_timer()
Call mymove()
End Sub
Sub mymove()
Label1.Left = (Label1.Left + 20)
If Label1.Left > Me.Left Then Label1.Left = 0
End Sub
End Class