private void SelectMode_SelectedIndexChanged_1(object sender, EventArgs e)
 {
     // CheckComPorts();
     if (SelectMode.GetSelected(0))
     {
         textBox1.Clear();
         richTextBox1.Clear();
         KeyControlls48.Visible = true;
         keyRemote24.Visible    = false;
         textBox1.AppendText("48 KEYMODE SELECTED\n");
     }
     else if (SelectMode.GetSelected(1))
     {
         richTextBox1.Clear();
         textBox1.Clear();
         KeyControlls48.Visible = false;
         keyRemote24.Visible    = true;
         textBox1.AppendText("24 KEYMODE SELECTED\n");
     }
     else if (SelectMode.GetSelected(2))
     {
         richTextBox1.Clear();
         textBox1.Clear();
         KeyControlls48.Visible = false;
         keyRemote24.Visible    = false;
         textBox1.AppendText("No Mode SELECTED\n");
     }
 }
 private void SelectMode_SelectedIndexChanged(object sender, EventArgs e)
 {
     // CheckComPorts();
     if (SelectMode.GetSelected(0))
     {
         textBox1.Clear();
         kyMChkBx.Checked       = true;
         kyMChkBx2.Checked      = false;
         KeyControlls48.Visible = true;
         textBox1.AppendText("48 KEYMODE SELECTED\n");
     }
     else if (SelectMode.GetSelected(1))
     {
         textBox1.Clear();
         kyMChkBx2.Checked      = true;
         kyMChkBx.Checked       = false;
         KeyControlls48.Visible = false;
         textBox1.AppendText("24 KEYMODE SELECTED\n");
     }
 }