Csharp Ninja

Csharp Ninja

  • NA
  • 97
  • 179k

How can I delay?

Jan 27 2012 8:02 PM
Lets Say My code is:

private void button1_Click(object sender, EventArgs e)
        {
            webBrowser1.Navigate("http://www.google.com");

// I WANT TO DELAY 5 SECONDS HERE. I WANT TO VISIT FACEBOOK.COM AFTER 5 SECONDS AUTOMATICALLY. WHAT CODE SHOULD I WRITE?
           
            webBrowser1.Navigate("http://facebook.com");
        }

HELP ME PLEASE. CHEERS

Answers (3)