方法一:关闭子窗体后form2.Closed+=(ss,ee)=>{this.Close();};或Application.OpenForms集合找到要关闭的窗口,再Close:foreach(variteminApplication.OpenForms){if(itemisForm1)item.Close();}方法二:Bnew_form=newB();new_form.owner=this;this.hide();new_form.showdialog();Application.ExitThread();Application.ExitThread();是退出当前线程。首先默认情况 Read More