public frmMain() { InitializeComponent(); fPy = new frmPyBitmessage(); fPy.MdiParent = this; fPy.FormClosed += new FormClosedEventHandler(fPy_FormClosed); fBa = new frmBackup(); fBa.MdiParent = this; fBa.FormClosed += new FormClosedEventHandler(fBa_FormClosed); }
void fBa_FormClosed(object sender, FormClosedEventArgs e) { fBa = new frmBackup(); fBa.MdiParent = this; fBa.FormClosed += new FormClosedEventHandler(fBa_FormClosed); }