BigSi Posted May 9, 2003 Posted May 9, 2003 Hi, im trying to work out how I can prevent some code in a sub routine from running for a few seconds. for example if I had 2 message boxes, and wanted the second one to open 5 seconds after I cliked ok on the first. - is this done with the timer? Thanks - Si Quote
Leaders Squirm Posted May 9, 2003 Leaders Posted May 9, 2003 (edited) System.Threading.Thread.Sleep(milliseconds) Edited May 9, 2003 by Squirm Quote Search the forums | Still IRCing | Be nice
BigSi Posted May 9, 2003 Author Posted May 9, 2003 Thanks squirm, that worked great! - I did try using the timer and a for loop, but i only succeeded in making my computer hang! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.