Please, i am writting a program and i want the program to run every 3 hours, now when i try to put 10800000ms which is equivalent to 3 hours in the interval property of the timer, i get an error message that say.. "Invalid Property Value", Is it that it cant take much like that, or what do i do?

Recommended Answers

All 3 Replies

I think that exceeds the max value allowed.

make it in adobe flash. quite easy and more developed then VB :)

I have gotten the answer... i actually thought about it and this is the code..

All these should be in the form load event.

dim counter as integer
dim K as integer

counter= 0
k = (60 * 60) *3 // which is the 3 hours..

Then these should be dropped in the timer event.

if counter < K then
 counter= counter +1
else
 // insert what you want to repeat every 3 hours here.
counter=0 // set the counter back to 0
end if

I hope this helps others..
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.