DECLARE INTEGER FindWindow IN Win32API; STRING @lpClass, STRING @lpTitle DECLARE INTEGER SetWindowText IN Win32API; INTEGER hWnd, STRING @lpStringNext you'll need a timer, with something like the following in the Timer event
LOCAL lctitle, lnhwnd * Naturally, you'll need a form property named as below and inititalized * to the value of the timeout lctitle = "Time remaining " + TRANSFORM(ThisForm.nSecondsLeft) lnhwnd = FindWindow(0, @lctitle) IF lnhwnd > 0 ThisForm.nSecondsLeft = ThisForm.nSecondsLeft - 1 lctitle = "Time remaining " + TRANSFORM(ThisForm.nSecondsLeft) = SetWindowText(lnhwnd, @lctitle) ENDIFSimply enable the timer prior and set the nSecondsLeft property priot to calling the MESSAGEBOX() function. Note that I did not test this with varying levels of modality available to the MESSAGEBOX() function and that I did not test in run-time mode, simply in design time.