title: C# Form gradual fade
body: <p>All I want to do is to display the form with 100 opacity then after X time it starts to fade until 0.0 opacity, I have the algorithm but I don't know where to implement it as if I use it in Form_Load the Forms already shows up with the final opacity, as well as after InitializeComponent();</p>
  
  <pre><code>this.Opacity = 1.0;
  
  for (float i = 1.0f; i &gt;= 0.0f; i -= 0.1f)
  {
      this.Opacity = i;
      Thread.Sleep(150);
  }
  </code></pre>