Example #1
0
        private void getComPort()
        {
            MessageBox.Show("FMG band is not connected!");
            ConnectForm connectForm = new ConnectForm(this);

            connectForm.Show();
            //this.SendToBack();
            //connectForm.BringToFront();
            //connectForm.Focus();
            //Application.OpenForms[connectForm.Name].Activate();
        }
Example #2
0
        private void getComPort()
        {
            //MessageBox.Show("FMG band is not connected!");
            ConnectForm connectForm = new ConnectForm(cntrlForm);

            connectForm.Show();
            this.Close();
            // CloseForm(this);
            //BeginInvoke(new MethodInvoker(Close));
            //this.Invoke((MethodInvoker)delegate () { this.Close(); });
        }