[英]Customize MDI in c#
In my project i have to run multi-interfaces at a time. 在我的项目中,我必须一次运行多个接口。 I used isMdicontainer property.
我使用isMdicontainer属性。 But problem is whole area is converted to MDI.
但问题是整个区域被转换为MDI。 Can i set boundaries for it,like in Photoshop(below menu-bar there is toolbar,below toolbar Mdi is appearing).
我可以为它设置边界,就像在Photoshop中一样(在菜单栏下方有工具栏,工具栏Mdi正在出现)。
And I like the tab structure in Photoshop used to switch images. 我喜欢Photoshop中用于切换图像的标签结构。 How can i introduce that into my project for switching between forms.
我如何将其引入我的项目之间切换表单。 I am using VS 2010, Doing project in C#(Win forms), net framework 3.5
我正在使用VS 2010,在C#(Win表单)中执行项目,net framework 3.5
Thanks in advance. 提前致谢。
You can use container controls like Panels and Dock them to the side — this will reduce the area of the MDI child area. 您可以使用Panels之类的容器控件并将它们停靠在一侧 - 这将减少MDI子区域的面积。
As far as tabs are concerned, that's a different beast than the MDI model. 就标签而言,这是与MDI模型不同的野兽。 You can try Multi Document Interface (MDI) tab page browsing with C#
您可以尝试使用C#浏览多文档界面(MDI)标签页
You can do a lot of things, 你可以做很多事情,
The following tasks are illustrated Here : 以下任务说明如下 :
The following steps should give you a start. 以下步骤应该为您提供一个开始。
MenuBar
a ToolStrip
and a TabControl
to your main form. MenuBar
ToolStrip
和TabControl
到主窗体。 Dock
property to DockStyle.Top
. Dock
属性设置为DockStyle.Top
。 TabControl
so that the tabpages are hidden. TabControl
大小,以便隐藏选项卡。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.