
Originally Posted by
cncmachineguy
....How to setup a timer trigger? Maybe it is in the control toolbox? I will check there next.
Select the TIMER control from the toolbox and drag it into your project. Click on the control to display its properties. Enable the TIMER and set its interval to whatever you want (in mS) - see below.

Then code whatever you want to happen whenever a trigger occurs as in the example below.
Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
count = Val(Label1.Text) * 100
count = count + 1
HScrollBar1.Value = count
Label1.Text = Format$(count / 100, "#0.00")
NumericUpDown1.Value = count / 100
count = Val(Label3.Text) * 100
count = count + 1
HScrollBar2.Value = count
Label3.Text = Format$(count / 100, "#0.00")
End Sub
Bookmarks