MDI亲子 [英] MDI Parent child

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

问题描述

我有一个父表单,可以打开子表单。现在我需要这个孩子打开另一个表格并将其作为原始父母的孩子。如何在孩提时分配




tx,

Paul

I have a Parent form that opens a child form. Now I need this child to open
another form and have it as a child of the original parent. How can I assign
it as a child?

tx,
Paul

推荐答案

您好Paul,


您是否正在寻找这部分语法?

\\\

frm3.MdiParent = Me.ParentForm

frm3.Show()

///


Cor
Hi Paul,

Are you looking for this part of the syntax?
\\\
frm3.MdiParent = Me.ParentForm
frm3.Show()
///

Cor


Cor,适用于第一个孩子,但不适用于第二个孩子。请记住

从第一个孩子那里打电话给第二个孩子。所以我不能:


2ndChild.MDIParent =我



2ndChild.MDIParent =父母

Cor Ligthert <无********** @ planet.nl>在消息中写道

news:Ow ************** @ tk2msftngp13.phx.gbl ...
Cor, that works for the first child, but not for the second child. Remember
that the second child is called from the first child. So I can not:

2ndChild.MDIParent=Me
or
2ndChild.MDIParent=Parent
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:Ow**************@tk2msftngp13.phx.gbl...
嗨Paul, \\\
frm3.MdiParent = Me.ParentForm
frm3.Show()
///

Cor
Hi Paul,

Are you looking for this part of the syntax?
\\\
frm3.MdiParent = Me.ParentForm
frm3.Show()
///

Cor



*" Paul Mars" < PA ************ @ netzero.com> scripsit:
* "Paul Mars" <pa************@netzero.com> scripsit:
我有一个父表单,可以打开子表单。现在我需要这个孩子打开另一种形式并将其作为原始父母的孩子。我如何指定它作为一个孩子?
I have a Parent form that opens a child form. Now I need this child to open
another form and have it as a child of the original parent. How can I assign
it as a child?




\\\

Dim f As New SampleForm()

f.MdiParent = Me.MdiParent

f.Show()

///


-

Herfried K. Wagner [MVP]

< URL:http://dotnet.mvps.org/>



\\\
Dim f As New SampleForm()
f.MdiParent = Me.MdiParent
f.Show()
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


这篇关于MDI亲子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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