父窗体弹出窗体时的代码:
窗体名称 Form = new 窗体名称();
Form.MotherForm = this;
Form.ShowDialog();
子窗体的代码:
父窗体名称 MotherForm;
函数中:
MotherForm= (父窗体名称)this.Owner;
MotherForm.changeTab(1);
父窗体弹出窗体时的代码:
窗体名称 Form = new 窗体名称();
Form.MotherForm = this;
Form.ShowDialog();
子窗体的代码:
父窗体名称 MotherForm;
函数中:
MotherForm= (父窗体名称)this.Owner;
MotherForm.changeTab(1);