private void btnSwitchDedi_Click(object sender, EventArgs e) { this.Hide(); mainForm form = new mainForm(); form.Show(); mainForm.activated = true; }