親フォームで複数の子フォームを表示していますが、開いていますがchild2 from child1
、これまでは正常に機能し、親フォームでフォームが開いていますが、親フォームの外で開いているよりもchild3 from child2
戻りたい場合、正しいコードは何ですか戻るボタンの?child2 to child1
child1 form
chil2 form
で書かれた開封コードchild1 form
private void btnEngClgList_Click(object sender, EventArgs e) {
ShowEngClgList engfrm = new ShowEngClgList(LoginName);
engfrm.MdiParent = this.ParentForm;
this.Hide();
engfrm.Show();
}
で書かれた戻るボタンのコードchild2 Form
private void toolStripBtnBack_Click(object sender, EventArgs e) {
this.Close();
MainForm mnfrm = new MainForm(lname);
mnfrm.MdiParent = this.ParentForm;
mnfrm.Show();
}