如何制作MODAL MDIChild [英] How to make MODAL MDIChild

查看:61
本文介绍了如何制作MODAL MDIChild的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序是MDI子窗体的MDI子窗口。


其中一个子窗体调用模式对话框。


I希望模态对话框窗体位于mdi父窗口中。


我对MDI相关的其他任何事情都不感到烦恼

父母/子女关系,这纯粹是一个外观问题。


MDIParent属性和ShowDialog似乎互相排斥。


肯定有一些明亮的火花知道这是怎么回事已经实现了。

-

Chris Petchey

My App is an MDI Parent with MDI Child forms.

One of the child forms calls a modal dialog form.

I would like the modal dialog form to be INSIDE the mdi parent window.

I am not bothered about any of the other things associated with MDI
Parent/Child relationships, this is purely an appearance issue.

MDIParent property and ShowDialog seem to be mutually exclusive.

Surely some bright sparks knows how this is achieved.
--
Chris Petchey

推荐答案

我能提供的最好的是将模态表单'的所有者属性设置为

mdiparent,然后调用showdialog。它不是真正的mdichild,但在

最少它将连接到mdiparent。


T

Chris Petchey写道:
The best I can offer is to set the modal form''s owner property to the
mdiparent, then call showdialog. It won''t be truly an mdichild, but at
least it will be connected to the mdiparent.

T
Chris Petchey wrote:
我的应用程序是一个带有MDI子窗体的MDI父窗口。

其中一个子窗体调用模态对话框窗口。

我希望模态对话框窗口位于mdi父窗口中。

我对任何与MDI相关的其他内容都没有打扰
父/子关系,这个纯粹是一个外观问题。

MDIParent属性和ShowDialog似乎是相互排斥的。

肯定有一些明亮的火花知道这是如何实现的。
My App is an MDI Parent with MDI Child forms.

One of the child forms calls a modal dialog form.

I would like the modal dialog form to be INSIDE the mdi parent window.

I am not bothered about any of the other things associated with MDI
Parent/Child relationships, this is purely an appearance issue.

MDIParent property and ShowDialog seem to be mutually exclusive.

Surely some bright sparks knows how this is achieved.



Chris,


有些人提供解决方案而不是那个解决方案,你得到了

答案非常少。


其他人请求帮助解决问题。


可能是你的问题是当mdi表格显示它

可能只允许控制另一种形式或其他任何条件

履行。


这很容易通过设置关闭该表格的事件

\\\

如果没有完成,那么<​​br />
e.cancel = true''或false因为我总是感到困惑只是尝试



结束如果

///


我希望这有帮助,


Cor
Chris,

Some people give a solution and than that solution is not to do, and you get
very few answers.

Others ask help for a problem.

Can it be that your problem is that when the mdi form is showed that it
might give only control to another form or whatever as some conditions are
fulfilled.

That is easy to do by setting in the closing event of that form
\\\
if something not is done then
e.cancel = true ''or false because I am always confused by that just try
that
end if
///

I hope this helps,

Cor


如果我理解你的建议:


Dim f As New Form2

f.Owner = Me.MdiParent

f.ShowDialog()


似乎我,第二行完全没有差别。

以什么方式连接到mdiparent。 ?

它没有明显地包含在mdiparent窗口内,我的原始帖子的特定

要求。

请澄清

在消息< Rg ****************** @ bignews5.bellsouth.net> ;, ng

< t _ **** *@yahoo.com>写道
If I understand your suggestion:

Dim f As New Form2
f.Owner = Me.MdiParent
f.ShowDialog()

It appears to me that the second line makes NO DIFFERENCE AT ALL.
In what way is it "connected to the mdiparent" ?
It is not visibly contained within the mdiparent window, a specific
requirement of my original post.
Please clarify
In message <Rg******************@bignews5.bellsouth.net>, ng
<t_*****@yahoo.com> writes
我能提供的最好的方法是将模态形式的'owner属性设置为
mdiparent,然后调用showdialog。它不是真正的mdichild,但至少它将与mdiparent连接。


Chris Petchey写道:
The best I can offer is to set the modal form''s owner property to the
mdiparent, then call showdialog. It won''t be truly an mdichild, but at
least it will be connected to the mdiparent.

T
Chris Petchey wrote:
我的应用程序是一个带有MDI子窗体的MDI父窗口。

其中一个子窗体调用模式对话框。

我想要模态对话框窗体位于mdi父窗口中。

我对任何与MDI
父/子关系相关的其他事情都不感到困扰,这纯粹是一个外观问题。 />
MDIParent属性和ShowDialog似乎是互斥的。

肯定有一些明亮的火花知道如何实现。
My App is an MDI Parent with MDI Child forms.

One of the child forms calls a modal dialog form.

I would like the modal dialog form to be INSIDE the mdi parent window.

I am not bothered about any of the other things associated with MDI
Parent/Child relationships, this is purely an appearance issue.

MDIParent property and ShowDialog seem to be mutually exclusive.

Surely some bright sparks knows how this is achieved.




-

Chris Petchey



--
Chris Petchey


这篇关于如何制作MODAL MDIChild的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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