Example #1
0
 private void Form2_Closing(object sender, CancelEventArgs e)
 {
     Cursor.Show();
     if (parentForm.FULLSCREEN)
     {
         FullScreen.StopFullScreen(this);
     }
     parentForm.blackForm = null;
     parentForm.Show();
 }
Example #2
0
        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;
            }
        }