在面板内部形成 [英] Form inside a panel
问题描述
如何在其他表格的面板中打开表格?
是否有可能???
先谢谢,
Fabio
" Fabio" < FA *** @ glb.com.br> scripsit:如何在其他表格的面板中打开表格?
\\\
Dim f As New Form2()
f.TopLevel = False
Me.Panel1.Controls.Add(f)
f 。显示()
///
-
Herfried K. Wagner
MVP ·VB Classic,VB.NET
< http://www.mvps.org/dotnet>
Hi Fabio,Herfried,
好吧,我会被打倒!这不是一个方便的知识 - MDI
儿童表格在面板内!这意味着您可以拥有多个面板,每个面板具有独立的表格形式!
如果您想将子表单从一个面板移动到另一个面板,只需执行:
Me.ADifferentPanel.Controls.Add(f)
这将把它从一个分开并将其移过。
问候,
Fergus
我也想在我的软件中使用这个功能。
我尝试运行你的代码。但是f没有TopLevel
方法。而Me.Panel1.Controls.Add(f)会在点击按钮时使用
软件becomde debuge模式
执行你的代码。
你能详细描述你的代码吗?谢谢。
-----原始消息-----
Fabio < FA *** @ glb.com.br> scripsit:如何在其他表单的面板中打开表单?
\\\
Dim f As New Form2 ()
f.TopLevel = False
Me.Panel1.Controls.Add(f)
f.Show()
///
- -
Herfried K. Wagner
MVP·VB Classic,VB.NET
< http://www.mvps.org/dotnet>
。
How Can I open a form inside a panel of other form?
Is it possible???
Thanks in advance,
Fabio
"Fabio" <fa***@glb.com.br> scripsit:How Can I open a form inside a panel of other form?
\\\
Dim f As New Form2()
f.TopLevel = False
Me.Panel1.Controls.Add(f)
f.Show()
///
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Hi Fabio, Herfried,
Well, I''ll be blowed over!! Isn''t that a handy piece of knowledge - MDI
child Forms inside a Panel!! That means you could have several Panels each
with an independant set of Forms!
If you wanted to move a child Form from one Panel to another, simply do:
Me.ADifferentPanel.Controls.Add (f)
This will detach it from one and move it across.
Regards,
Fergus
I also want to have this function in my software.
I try to run your code. But f did not have TopLevel
method. And Me.Panel1.Controls.Add(f) will make
software becomde debuge mode when I click button to
execute your code.
Can you describe your code in detail? Thanks.
-----Original Message-----
"Fabio" <fa***@glb.com.br> scripsit:How Can I open a form inside a panel of other form?
\\\
Dim f As New Form2()
f.TopLevel = False
Me.Panel1.Controls.Add(f)
f.Show()
///
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
.
这篇关于在面板内部形成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!