Hi im new to VB and ive built a program that uses two timers to produce an osilating output..But i want to change the value of each timer INTERVAL prior to running the timers. Ive created two txt boxes to hold the timer interval times and a start button..It all works at the moment except the txt boxes..

This is a very simple process
all you have to do to change the interval is this.
for example

frminput.timer1.interval=1000 
frminput.timer2.interval=1000 

all you have to do is put this code were you want it. ex command button or form load
just place it in the area you want.
also 1000 is = to 1sec in vb.
i hope this was of some help.

Thanks for you reply..if i wanted a txt box to set the interval timer i could just change the 1000 in your code to a variable ''say I''..Its a work in progress thought..lol

For a text box i would do
n=val(frminput.text1.text)
and you can now put "n" into the timer code i gave you
frminput.timer1.interval=n
;)

For a text box i would do
n=val(frminput.text1.text)
and you can now put "n" into the timer code i gave you
frminput.timer1.interval=n
;)

Thanks il have a play tonight...thanks alot for your time..u have saved me hours..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.