private void Shutdown(object sender, FormClosingEventArgs e) { UIShutdown shutdown = new UIShutdown(this); toolStripStatusLabel1.Text = "Shutting down..."; shutdown.ShowDialog(this); }