主窗体中代码: public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void btnOpen_Click(object sender, EventArgs e) {//点击弹出方法 FrmChild frmChild = new FrmChild(); frmChild.ShowDialog(); if (frmChild.DialogResult == System.Wind…