.net - In dotnet windows forms, how do I pause in a form without putting the form's thread to sleep? -


problem not want use threading.sleep(1000) because need thread stay alive, pause before executing next line of code while disallowing user click on form during pause. simplest method think of open timed self-closing dialog opacity of 0. better way same result?

you can set enabled = false; , use timer set true later on.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -