I am using the SystemMessageBox variable to confirm the user does indeed want to quit the application. I have this in a calc icon: SystemMessageBox(WindowHandle, "Exit course?", "Confirmation", 33) -- 1=OK, 2=Cancel if xxx = 2 then exit Quit() So basically if they click OK, then Quit() happens, and if they click Cancel they go back to the CBT. What variable hold the value of the button clicked (i.e. the 1 or 2 in this case) If I am doing this wrong and there is an easier way let me know :) Thanks Jerome