Click to See Complete Forum and Search --> : different interval?


ant
June 29th, 2001, 08:08 AM
I have a timer control and it's interval = 0.9. Then i have another timer control it's interval = 9.5. When the second timer times out, It's supposed to unload the form. The problem is when i test out the program, it automatically unloads the form. both timer's intervals were 0.9. But 1 was supposed to be 9.5. Help!!!!!!!!!!!

--Ant
--------------------------------------------------
check out my newest freeware
E-mail me at: christopherfolger@hotmail.com
for the address

Harini
June 29th, 2001, 08:24 AM
Hello,

Try setting the interval of the second timer on Form_load

Thanks
Harini

ant
June 29th, 2001, 08:40 AM
i set both of them in the form load


--Ant
--------------------------------------------------
check out my newest freeware
E-mail me at: christopherfolger@hotmail.com
for the address

Cimperiali
June 29th, 2001, 08:40 AM
a timer can be set from 55 ms on (til about 60000)
If you set it under 55, it will be as you have not done under.
a difference of 0.5 or 5 millisecond is not perceptible by you. You can see (if you are fast) differences of about 20- 50 ms

Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.

Harini
June 29th, 2001, 08:55 AM
Try increasing the time interval with a noticable amount of difference between the two timers.

If this works out, it means the code is working out for your present time intervals also.

Thanks
Harini

shree
June 29th, 2001, 09:03 AM
Didn't I warn you about your use of timers in

http://codeguru.com/cgi-bin/bbs/wt/showpost.pl?Board=vb&Number=53340

Cimperiali
June 29th, 2001, 09:13 AM
You did, I do remember. Maybe there's another "memory leack" matter around here...
;)

Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.

Clearcode
June 29th, 2001, 09:25 AM
Remember that the interval property is measued in thousandths of a second.
If you want your timer to trigger after .9 seconds, set this value to 900 - for 9 and a half seconds, set this value to 9500.

HTH,
D.

-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com