title: How to click a button on form load using C#
body: <p>How do i click a button on foam load using C#?
  My button is called: <code>btnFacebookLogin</code></p>
  
  <p>I have tried this following:</p>
  
  <pre><code>private void Form1_Shown(Object sender, EventArgs e) 
  {
     btnFacebookLogin.PerformClick(); 
  }
  </code></pre>
  
  <p>I am using WinForms C# .NET 4</p>