本文介绍了无法识别MDI格式的父母的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I have 4 Forms
In Form1 I have made only one button ( ButtonForm2) so I can call Form2
In Form2 I have made 2 buttons (ButtonForm2A) and (ButtonForm2B)
(ButtonForm2A) so I can call Form2A
(ButtonForm2B) so I can call Form2B
I want to have Form2 as a parent of both Form2A and Form2B
I also want Form1 as a parent of Form2
--
I guss I have to make the property in Form1 (IsMdiContainer=true)
And in Form2 I have to make property in Form2 (IsMdiContainer=true)
And I will call Form2 using
Form2 frm2 = new Form2();
frm2.MdiChildren = this;
frm2.ShowDialog();
///////////
And I will call Form2A using
Form2A frm2a = new Form2A();
frm2a.MdiChildren = this;
frm2a.ShowDialog();
//
And I will call Form2B using
Form2B frm2b = new Form2B();
frm2b.MdiChildren = this;
frm2b.ShowDialog();
//
I do not know what is my mistake need help
推荐答案
这篇关于无法识别MDI格式的父母的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!