Is their anyway to delay a function on VB6? I tried to stop the thread but that didn't too well, the program crashed. It is outputting to a model car and I need it to flash but how do I set an interval between the flashes?
@ThePHPMaster the sleep method is messed up, kept on crashing VB. I just decided to use a bunch of complex timers, but if anyone has a better solution please do post it.
I wrote this in vb.net but I think it can be easily converted in VB6 Public Sub my_Pause(ByVal my_Seconds As Integer) Dim t_Start As Date = Date.Now Do Until t_Start.AddSeconds(my_Seconds) < Date.Now Application.DoEvents() Loop End Sub