Good day.!!


I just want to ask a better way to manage time in vb6. Like when that user presses the button, it will get the current system time then after 1 hour the program will be terminated.

If he clicked on the button @ 11:45:06am the program will terminated @ 12:45:06pm.

Thank you for giving time..

God bless us.

Use the datediff function and if you do not have any processing going on at the button click event, use a timer set to 60000 and see if Now() or Time is greater or equal to the value from the datediff function...

Good Luck

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.