private void CheckBox1_CheckedChanged_1(object sender, EventArgs e) { if (CheckBox1.Checked) { lowerSettingsPanel.Show(); lowerSettingsPanel.BringToFront(); } else { normalSettingPanel.BringToFront(); } Button1.BringToFront(); }