如何减少更多表格的使用 [英] how to reduce the usage of more forms

查看:66
本文介绍了如何减少更多表格的使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不想在我的项目中使用更多数字表单,但我有这样的要求所以通过使用单一形式可以创建任何其他虚拟表单或某事(工作空间)...如果我使用更多的数量形式,难以处理....

所以不使用更多表格如何有效地处理项目....我需要小指导......帮助我....

i dont want to use more number forms in my project, but i have requirement like that so by using single form is it possible to create any other virtual form or something(work space)... if i use more number of forms, its tough to handle....
so without using more forms how to handle project effectively.... i need small guidance... help me....

推荐答案

通过适当的设计,只需要一个表格;这可能是大多数情况下最好的设计。有时,还需要一些模态形式,但我们可能不会计算它们。



你现在拥有的单独表格应该变成容器控件,如面板 TabPage 。您可以更改这些控件的Z顺序或可见性,这会产生更改表单的印象,您可以切换 TabControl 的标签页。您还可以缩小/扩展面板。最后,您可以创建一个停靠界面,非常类似于Visual Studio。



您可以轻松实现除停靠界面之外的所有此类设计,这将是一个巨大的工作量。不幸的是,在这个时候,我不知道一个好的开源即用型对接库(但对于WPF,这是AvalonDock)。



For一个非常好且易于实现的解决方案我建议 System.Windows.Forms.TabControl

http://msdn.microsoft.com/en-us/library/system.windows.forms.tabcontrol.aspx [ ^ ]。



-SA
With proper design, only one form is needed; and this is probably the best design for most cases. Sometimes, some modal forms are also needed, but we may not count them.

What you have now separate forms should become container controls like Panel or TabPage. You can change Z-order or visibility of those controls which would create an impression of "changing" the form, you can switch tab pages of TabControl. You can also shrink/expand panels. Finally, you can create a docking interface, pretty much like the one of Visual Studio.

You can easily implement all such design except docking interface, which would be a huge amount of work. Unfortunately, at this time, I don''t know a good open-source ready-to-use docking library (but for WPF this is AvalonDock).

For a very good and easy-to-implement solution I would recommend System.Windows.Forms.TabControl:
http://msdn.microsoft.com/en-us/library/system.windows.forms.tabcontrol.aspx[^].

—SA


这篇关于如何减少更多表格的使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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