无法识别MDI格式的父母 [英] could not recognize the parent in mdi form

查看:57
本文介绍了无法识别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

推荐答案

AFAIK,您不能嵌套的MDI表单.您只能使用isMDIContainer true的一种形式.
AFAIK, you cannot have nested MDI forms. You can have only one form where the isMDIContainer is true.


人们还会尝试使用MDI多少呢?这个概念是如此死气沉沉,不鼓励使用.这没有什么可以证明付出努力的正当理由.

请查看一些批评和替代方法:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages [在WPF中使用MDI窗口的问题 [ ^ ],
提供错误的MDIContainer [
How much else people will be trying using MDI? The concept is so dead and highly discouraged. This is nothing good in it which could justify the effort.

Please see for some criticism and alternatives:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages[^],
Question on using MDI windows in WPF[^],
MDIContainer giving error[^].

—SA


这篇关于无法识别MDI格式的父母的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆