title: How to determine that a form has finished opening in C#
body: <p>I'm having some problems with my form and the business class:</p>
  
  <p>The form does not open until the business class has finished it's work. Every time I call Form1 in <code>Main()</code>, Form1 calls two methods:</p>
  
  <p><code>InitializeComponents();<br>
   testConnection();</code></p>
  
  <p><code>testConnection</code> calls the business class and sets the properties of the Form according to the properties of the business class. Like that:</p>
  
  <p><code>Pingger pingger = new Pingger();<br>
   ipLabel.Text = pingger.getLocalIP();</code></p>
  
  <p>I do not do just these operations, I also do others like the result of a ping. However, Form1 takes a long time to open and when it's open Form1 shows the results. What do I have to do, create Form1, open it, and then after 3 seconds start to process the business class?</p>