Hi all,
Ope your all aright. i trying to get my form1 to load about 30 seconds after i click on the button with the code
" form1 form = new form1();"
" form.show();"
is there code to set time so that form doesnt load immediately but after some time like 20 - 30 - 40 seconds
thanks.
Load form on time
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


VulpesRank #55 · 29.2K reputationPosted Oct 12, 2011, 6:31 AM EDT
Mayur DigheRank #1,078 · 1.8K reputationPosted Oct 12, 2011, 6:38 AM EDT
You can do it very easily by using Thread.Sleep(int miliseconds) method before showing the Form1.
For this you need to System.Threading Class
e.g.
using System.Threading;
//your code
Form1 form=new Form1();
Thread.Sleep(10000); //1000 miliseconds = 1 second
form.Show();
//your code