Making my form wait

fantity

Active member
Joined
Mar 10, 2012
Messages
27
Programming Experience
Beginner
How do I make my form wait a few seconds after a button click to respond. I have tried making it sleep on button click but I want it to send a msgbox then wait. Any ideas?
 
While i would not say using Threading.Thread.Sleep is bad practice, i would how ever say if it need's to be used in the main thread then it might be worth having a rethink. There is in most cases a more suitable way to handle a problem with out calling Sleep. Why not give us more information on what you are trying to achieve and we can see if we can find a better solution.
 
Back
Top