Make a Windows form fade away on Close
By [)ia6l0 iii
Write this piece of code in the Form Close event to see the form fade away on close.
for(double d=1.0d; d> 0d; d-=0.2d)
{
System.Threading.Thread.Sleep(50);
Application.DoEvents();
this.Opacity=d;
this.Refresh();
}
Environment.Exit(0);
Make a Windows form fade away on Close (593 Views)