private void MainInterface_FormClosing(object sender, FormClosingEventArgs e) { Win32.AnimateWindow(this.Handle, 300, Win32.AW_HIDE | Win32.AW_VER_POSITIVE | Win32.AW_SLIDE); Application.Exit(); }