private void tbtnAttach_Click(object sender, EventArgs e) { if (Detached) { Retach(); } else { Detach(); } }