在一个表单中使用多个表单(Winforms C#) [英] Using multiple forms inside one form (Winforms C#)

查看:88
本文介绍了在一个表单中使用多个表单(Winforms C#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

想知道是否有人可以提供帮助,我在主表单中使用多种表单时遇到了问题.

尝试使用MDI应用程序解决方案,但没有安静地提供帮助,因为每次启用表单时都会闪烁(重新绘制)表单,这有点烦人.

从每种形式中构建用户控件是一件很乏味的工作.

因此,如果有人遇到此类问题并可以提供帮助,将非常感激...

Hi guys,

was wondering if anyone can help, i''ve got an issue with using multiple forms inside my main form.

tried going through with the MDI application solution , didn''t quiet helped, as the forms flicker(redrawn) each time they are enabled and it''s a bit annoying.

building a user control out of each form is quiet a tedious work.

so if anyone had this kind of problem and could help, will be very gratefull...

推荐答案

MDI或控件-这是您的选择.非MDI表单不能包含在其他表单中,因此请选择一个!抱歉,这是休息时间.
MDI or control - that''s your choice. Non-MDI Forms cannot be contained within other forms, so pick one! Sorry, but those is the breaks.


也许这篇文章可以为您提供帮助.另请参阅我对本文的评论:以编程方式激活MDI子窗体时闪烁/闪烁的解决方法 [ ^ ]
Maybe this article can help you. Also look at my comment to this article: Workaround for flicker/flashing when programmatically activating MDI child forms[^]


帮自己一个忙,切勿使用MDI!不要折磨自己并排斥客户.您希望成为子控件的可能是TabPanels实例的面板(强烈建议:基于TabControl创建选项卡UI).

参见:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages [提供错误的MDIContainer [在WPF中使用MDI窗口的问题 [ ^ ].

—SA
Do yourself a big favor, never use MDI! Don''t torture yourself and repel your customers. What you wanted to be child control could be panels of instanced of TabPanels (highly recommended: create tab UI based on TabControl).

See:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages[^].

In my past answers:
MDIContainer giving error[^],
Question on using MDI windows in WPF[^].

—SA


这篇关于在一个表单中使用多个表单(Winforms C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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