rn.ShowDialog() == DialogResult.OK

//主窗体

ChildForm f=new ChildForm();

if(f.ShowDialog() == DialogResult.OK)

{

......................................

}

//ChildForm某事件

{

this.DialogResult = DialogResult.OK;

}

原文地址:https://www.cnblogs.com/xiguanjiandan/p/2738880.html