private void Form2_Closing(object sender, CancelEventArgs e) { Cursor.Show(); if (parentForm.FULLSCREEN) { FullScreen.StopFullScreen(this); } parentForm.blackForm = null; parentForm.Show(); }
private void MainForm_Closing(object sender, System.ComponentModel.CancelEventArgs e) { FullScreen.StopFullScreen(this); if (isBarcodeInitiated) { myScanSampleAPI.TermBarcode(); //Remove Form event handlers this.Activated -= myFormActivatedEventHandler; this.Deactivate -= myFormDeactivatedEventHandler; } }