if your app is a WinForms app and all of your code is running on the main thread, then Thread.Sleep(1000) will stall the GUI, which is not really acceptable; you should either use a timer to create a period of inactivity (a Windows.Forms.Timer keeps you on that main thread); or better yet, delegate the slow operations to another thread, have a look at BackgroundWorker. Warning: you may want to read this[^]. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
Happy New Year to all.
We hope 2010 soon brings us automatic PRE tags!
Until then, please insert them manually.