选项卡式MDI中的选项卡 [英] Tab within Tabbed MDI

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

问题描述

我已经建立了一个带标签的Mdi应用程序.MdiParent包含一个工具栏,其中包含诸如库存,生产等按钮.假设库存表单包含诸如采购,购买之类的按钮.我必须在库存表单中存在的tabcontrol中打开采购表单.如何做到这一点...

I have build a tabbed Mdi application.MdiParent contains a toolstrip which has buttons like inventory,production etc.When this buttons are clicked the forms open inside the tabpage of the tabcontrol present in the mdiparent.Its working.Now i have toolstrip in suppose inventory form which contains buttons like procurement,purchase.I have to open the procurement form inside the tabcontrol present in inventory form.how to do that...

推荐答案

为什么不只是将选项卡控件放在其中一个选项卡中?选项卡控件中选项卡页的子项本身也可以是选项卡控件.
Why don''t you just drop a tab control in one of the tabs? The child of a tab page in a tab control can itself be a tab control.


如果您创建的TabControl是选项卡,从客户体验的角度来看,这太令人困惑了.视图(即使从技术上讲很容易).您需要两个级别?好的.使它们在视觉上有所不同.例如,一种这样的设计可以基于ListBox/Panel形式的主细节.

假设您有一个标签页;在选项卡页面中,一个ListBox包含项目和一些Panel在右边.当您在列表框中更改选择时,使用System.Windows.Forms.CheckedListBox.SelectedIndexChanged事件查看该项目并在右侧显示Panel的适当实例.

—SA
If you create a TabControl is a tab, it would be too confusing from the customer experience point of view (even though it''s quite easy technically). You need two levels? Good. Make them visually different. One such design can be based on master-detail in the form of ListBox/Panel, for example.

Imagine you have a tab page; inside a tab page a ListBox with items and some Panel of right. When you change selection in a list box, use System.Windows.Forms.CheckedListBox.SelectedIndexChanged event to look at the item and show appropriate instance of Panel on right side.

—SA


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

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