Skip to main content

Write a VB Program to move a command button by using timer control.

· One min read
Kaustubh Kulkarni
file.vb
Private Sub Form_Load()  

Timer1.Interval = 1
Timer1.Enabled = True

End Sub

Private Sub Timer1_Timer()
Command1.Left = Command1.Left + 2
End Sub