I am trying to move a textbox around a form, every time the timer reaches it interval. It only does or once, or twice, but never constantly.
Heres timers properties
Any help is greatly appreciated. Thanks
Heres timers properties
VB.NET:
AutoReset = True
Enabled = True
Interval = 1000
And code:
[code]
Private Sub tmrMove_Elapsed(ByVal sender As System.Object, ByVal e As System.Timers.ElapsedEventArgs) Handles tmrMove.Elapsed
Dim width As Integer
Dim height As Integer
height = RandomNumber(0, 500)
width = RandomNumber(0, 500)
lblTitle.Location = New Point(width, height)
tmrMove.AutoReset = True
End Sub
Any help is greatly appreciated. Thanks