Any 1 know how to write a VB6.0 code to call a function after few minutes?
Besides, the program must not disturb the other functions at the same time the time function is also working.
You could read the time from the PC clock and store it, Then have your program watch the clock at a certain point in the program. When it reaches the pre-set time, "do your code"...
DumboFixer has the right idea. You can place any number of Timer objects on a form. The interval can be set at design time or you can modify it during execution. When the interrupt occurs, do whatever it is you need to do. If you are concerned that the task to be performed may span a timer interrupt, disable that Timer upon entering the Timer interrupt routine. That will eliminate the possibility of a continuous loop.