应用表单作为选项卡 [英] App with forms as tabs

查看:55
本文介绍了应用表单作为选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个看起来像VS 2005 IDE的新的VB 2005应用程序 -

换句话说,一个有多种形式的应用程序,而不是

单独显示它们或在MDI主显示中,我宁愿在屏幕上显示

它们。我可能在左侧树视图中有应用程序可用的功能,然后当他们选择

函数时,它会在新标签中打开它们...再一次,几乎与VB IDE一样。


因此,我的问题是:我们可以在
$ b $中显示Windows窗体表格吗? b标签?


Tom

-

I''d like to create a new VB 2005 app that looks like the VS 2005 IDE -
in other words, an app that has multiple forms, but instead of
displaying them seperately or in an MDI main from, I''d rather display
them in tabs across the screen. I might have functions that are
available to the app in the tree view on the left, then as they select
functions it would open them in a new tab... again, almost exactly as
the VB IDE does.

My question therefore really is: Can we display Windows Forms forms in
tabs?

Tom
--

推荐答案

你想要制作用户控件,并将它们放在选项卡中。


" Tom" < to *@nospam.comwrote in message

news:ez ************** @ TK2MSFTNGP02.phx.gbl ...
You would want to make user controls, and put those in the tabs.

"Tom" <to*@nospam.comwrote in message
news:ez**************@TK2MSFTNGP02.phx.gbl...

我想创建一个看起来像VS 2005 IDE的新VB 2005应用程序 -

换句话说,一个有多种形式的应用程序,但是而不是单独或在MDI主显示它们的
,我宁愿在屏幕上的标签中显示

。我可能在左侧树视图中有应用程序可用的功能,然后当他们选择

函数时,它会在新标签中打开它们...再一次,几乎与VB IDE一样。


因此,我的问题是:我们可以在
$ b $中显示Windows窗体表格吗? b标签?


Tom

-
I''d like to create a new VB 2005 app that looks like the VS 2005 IDE -
in other words, an app that has multiple forms, but instead of
displaying them seperately or in an MDI main from, I''d rather display
them in tabs across the screen. I might have functions that are
available to the app in the tree view on the left, then as they select
functions it would open them in a new tab... again, almost exactly as
the VB IDE does.

My question therefore really is: Can we display Windows Forms forms in
tabs?

Tom
--



Marina :不幸的是,这并不是我想做的事情。我想

将我已编码的应用程序转换为此''Visual Studio IDE''

类型格式。这个应用程序已经有50个左右已经编码的表单 - 我真的没有

想要尝试将这些表单中的一个转换为用户

控制!!这需要一段时间,而且我们的

公司可能需要花费太多时间来批准。


难道没有办法显示已经选项卡中的创建形式?

VS IDE是如何做到的?


Tom

-


Marina Levit [MVP]写道:
Marina: Unfortunately, that isn''t really what I ''want'' to do. I want to
convert an application I already coded over to this ''Visual Studio IDE''
type format. This app has 50 or so already coded forms - I really don''t
want to try to convert EVERY one of those forms over to a user
control!! That would take awhile and probably cost too much for our
company to ''approve''.

Isn''t there any way to display an already-created form in a tab? How
does the VS IDE do it?

Tom
--

Marina Levit [MVP] wrote:

>你想要制作用户控件,并将它们放在标签中。

" ;汤姆与QUOT; < to *@nospam.com写信息
新闻:ez ************** @ TK2MSFTNGP02.phx.gbl ...
>You would want to make user controls, and put those in the tabs.

"Tom" <to*@nospam.comwrote in message
news:ez**************@TK2MSFTNGP02.phx.gbl...

>>我想创建一个看起来像VS 2005
IDE的新VB 2005应用程序 - 换句话说,一个有多种形式的应用程序,而不是正如VB IDE所做的那样。

因此我的问题是:我们可以在选项卡中显示Windows窗体表格吗?

Tom
-
>>I''d like to create a new VB 2005 app that looks like the VS 2005
IDE - in other words, an app that has multiple forms, but instead of
displaying them seperately or in an MDI main from, I''d rather
display them in tabs across the screen. I might have functions that
are available to the app in the tree view on the left, then as they
select functions it would open them in a new tab... again, almost
exactly as the VB IDE does.

My question therefore really is: Can we display Windows Forms forms
in tabs?

Tom
--


我确定它在vb2005中是相同的,在vb2003中你做了:


dim myform as new frmToGoOnTab

frm.toplevel = false

tabpage1.controls.add(frm)

frm.dock = DockStyle。填写''扩展表格以填写标签页

frm.show

hth

Simon


-

Simon Verona


" Tom" < to *@nospam.com写信息

新闻:u4 ************* @ TK2MSFTNGP05.phx.gbl ...
I''m sure it''s the same in vb2005, in vb2003 you do :

dim myform as new frmToGoOnTab
frm.toplevel=false
tabpage1.controls.add(frm)
frm.dock=DockStyle.Fill '' Expands the form to fill the tabpage
frm.show
hth
Simon

--
Simon Verona

"Tom" <to*@nospam.comwrote in message
news:u4*************@TK2MSFTNGP05.phx.gbl...

Marina:不幸的是,这并不是我真正想做的事情。我想

将我已编码的应用程序转换为此''Visual Studio IDE''

类型格式。这个应用程序已经有50个左右已经编码的表单 - 我真的没有

想要尝试将这些表单中的一个转换为用户

控制!!这需要一段时间,而且我们的

公司可能需要花费太多时间来批准。


难道没有办法显示已经选项卡中的创建形式?

VS IDE是如何做到的?


Tom

-


Marina Levit [MVP]写道:
Marina: Unfortunately, that isn''t really what I ''want'' to do. I want to
convert an application I already coded over to this ''Visual Studio IDE''
type format. This app has 50 or so already coded forms - I really don''t
want to try to convert EVERY one of those forms over to a user
control!! That would take awhile and probably cost too much for our
company to ''approve''.

Isn''t there any way to display an already-created form in a tab? How
does the VS IDE do it?

Tom
--

Marina Levit [MVP] wrote:

>>您可能想要制作用户控件,并将其放在标签中。
"汤姆" < to *@nospam.com写信息
新闻:ez ************** @ TK2MSFTNGP02.phx.gbl ...
>>You would want to make user controls, and put those in the tabs.

"Tom" <to*@nospam.comwrote in message
news:ez**************@TK2MSFTNGP02.phx.gbl...

>>>我想创建一个看起来像VS 2005
单独显示它们或在MDI主显示中,我宁愿在屏幕上的选项卡中显示它们。我可能在左侧的树状视图中有应用程序可用的功能,然后当他们选择功能时,它会在新选项卡中打开它们......再次,几乎完全
正如VB IDE所做的那样。

因此我的问题是:我们可以在选项卡中显示Windows窗体表格吗?

Tom
-
>>>I''d like to create a new VB 2005 app that looks like the VS 2005
IDE - in other words, an app that has multiple forms, but instead of
displaying them seperately or in an MDI main from, I''d rather
display them in tabs across the screen. I might have functions that
are available to the app in the tree view on the left, then as they
select functions it would open them in a new tab... again, almost
exactly as the VB IDE does.

My question therefore really is: Can we display Windows Forms forms
in tabs?

Tom
--



这篇关于应用表单作为选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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