Example #1
0
 private void Fade_Timer_Tick(object sender, EventArgs e)
 {
     if (this.Opacity > 0.0)
     {
         this.Opacity -= 0.200;
     }
     else
     {
         Fade_Timer.Stop();
         Application.Exit();
     }
 }
Example #2
0
 private void Button_Exit_Click_1(object sender, EventArgs e)
 {
     Fade_Timer.Start();
     Environment.Exit(0);
 }