private void button39_Click(object sender, EventArgs e) { Hide( ); System.Threading.Thread.Sleep(200); using (FormSiemens form = new FormSiemens(SiemensPLCS.S400)) { form.ShowDialog( ); } System.Threading.Thread.Sleep(200); Show( ); }