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.
Loading

Mayur DighePosted Oct 12, 2011, 10:38 AM
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
VulpesPosted Oct 12, 2011, 10:31 AM