private void button8_Click(object sender, EventArgs e) { if (ANDserial.IsOpen) { ANDserial.Close(); this.BackColor = Color.Khaki; } }