Mdi概念问题 [英] Mdi Concept questions

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

问题描述



对这个新手问题很抱歉,但我对MDI

概念有一些疑问。


我有一个MdiParent表单,可以调用子表单(A)。

这个子表单(A)可以调用另一个表单(B)。


示例。

我的主要表格是MDI父表格。

我有一个按钮,可以启动客户列表(子表格A)。

当我想要获取一个客户的详细信息我加载(子表格B)


如何设置每个孩子拥有相同的MdiParent?


斯坦


Hi,
Sorry about this newbie question, but I have some questions about the MDI
Concept.

I have a MdiParent form that calls a Child Form (A).
This Child Form (A) could call another Form (B).

Example.
My main Form is the MDI Parent Form.
I have a button that launches a Customer Listing (Child Form A).
When I want to get the details of one customer I load the (Child Form B)

How to set each Child for having the same MdiParent ?

Stan


推荐答案

*" Stan Sainte-Rose" < ST ** @ cyber972.com> scripsit:
* "Stan Sainte-Rose" <st**@cyber972.com> scripsit:
对这个新手问题很抱歉,但我对MDI
概念有一些疑问。

我有一个MdiParent表格,可以调用一个儿童表格(A这个儿童表格(A)可以打电话给另一个表格(B)。

示例。
我的主要表格是MDI家长表格。
我有一个表格。启动客户列表的按钮(子表单A)。
当我想获取一个客户的详细信息时,我加载(子表单B)

如何设置每个孩子以获得同样的MdiParent?
Sorry about this newbie question, but I have some questions about the MDI
Concept.

I have a MdiParent form that calls a Child Form (A).
This Child Form (A) could call another Form (B).

Example.
My main Form is the MDI Parent Form.
I have a button that launches a Customer Listing (Child Form A).
When I want to get the details of one customer I load the (Child Form B)

How to set each Child for having the same MdiParent ?




\\\

Dim f As New FormB()

f。 MdiParent = Me.MdiParent

f.Show()

///


-

Herfried K. Wagner [MVP]

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



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

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


谢谢Herfried,


我忘了说

我打电话给这样的儿童表格A.


Dim f As New FormA ()

f.MdiParent =我

---> Panel1.Controls.Add(f)

f.Show()


我使用面板控件

但我不喜欢我不知道怎么用同样的语法打电话给表格B.

Stan


" Herfried K. Wagner [MVP]" <喜*************** @ gmx.at> aécritdansle

message de news:#L ************** @ TK2MSFTNGP11.phx.gbl ...
Thanks Herfried,

I forgot to say
I call the Child Form A like this.

Dim f As New FormA()
f.MdiParent = Me
---> Panel1.Controls.Add(f)
f.Show()

I use a Panel Control
But I don''t know how to call the Form B using the same syntax.

Stan

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> a écrit dans le
message de news: #L**************@TK2MSFTNGP11.phx.gbl...
* Stan Sainte-Rose < ST ** @ cyber972.com> scripsit:
* "Stan Sainte-Rose" <st**@cyber972.com> scripsit:
对这个新手问题很抱歉,但我对
MDI概念有一些疑问。

我有一个MdiParent表单,可以调用子表单(A这个儿童表格(A)可以打电话给另一个表格(B)。

示例。
我的主要表格是MDI家长表格。
我有一个表格。启动客户列表的按钮(子表单A)。
当我想获取一个客户的详细信息时,我加载(子表单B)

如何设置每个孩子以获得同样的MdiParent?
Sorry about this newbie question, but I have some questions about the MDI Concept.

I have a MdiParent form that calls a Child Form (A).
This Child Form (A) could call another Form (B).

Example.
My main Form is the MDI Parent Form.
I have a button that launches a Customer Listing (Child Form A).
When I want to get the details of one customer I load the (Child Form B)

How to set each Child for having the same MdiParent ?



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

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



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

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



*" Stan Sainte-Rose" < ST ** @ cyber972.com> scripsit:
* "Stan Sainte-Rose" <st**@cyber972.com> scripsit:
我忘了说
我称这样的儿童形式A.

Dim f As New FormA()
f.MdiParent =我
---> Panel1.Controls.Add(f)
f.Show()
I forgot to say
I call the Child Form A like this.

Dim f As New FormA()
f.MdiParent = Me
---> Panel1.Controls.Add(f)
f.Show()




这不行。您必须将表单''''TopLevel''设置为

''False''。但是我不明白为什么你不使用MDI环境。

你可以试试这样的东西:


\\\\ \\ b
f.Parent = Me.Parent

///


-

Herfried K. Wagner [MVP]

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



This won''t work. You will have to set the form''s ''TopLevel'' property to
''False''. But I don''t understand why you don''t use an MDI environment.
You can try something like this:

\\\
f.Parent = Me.Parent
///

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


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

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