在MDI表单中使用自定义子表单的问题 [英] Problem in using Custom Child form inside MDI form

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

问题描述

你好,

我已经开发了一个边框样式为None的表单,我希望该表单可以在Parent表单中使用,但是问题是我可以在MDI表单中创建子表单,但不能使用MdiLayout属性以任何方式进行排列.请帮助我


谢谢
关于

Hello,

I have develop a form with borderstyle None.I want that form to be used inside a Parent form.But the problem is I can create the child form inside MDI form but it can''t arranged in any way using the MdiLayout properties .So pls help me


Thanks
Regards

推荐答案

您的问题是您的表单没有边框,因此没有收到布局事件.将边框样式重新设置为普通边框即可.
Your problem is that your form has no border, and therefore doesn''t receive the layout events. Set the border style back to a normal border, and it will work.


您要做什么?

您是否以格式查看过dockleftTopheightwidth属性?

如果这些方法无济于事,请扩大您的问题,我们将尝试提供更多帮助
What are you trying to do?

have you looked at the dock, left, Top, height, width properties in the form?

If these dont help please expand on your question and we''ll try to help more


听一个很好的友好建议:不要折磨自己,不要追逐自己具有MDI的客户.强烈建议不要使用这种类型的UI,并且切勿在任何合理的专业UI中使用它.具有停靠或选项卡式UI的SDI更加方便和易于实现.

参见:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages [在WPF中使用MDI窗口的问题 [ ^ ],
提供错误的MDIContainer [
Listen to a good friendly advice: don''t torture yourself and don''t chase out your customers with MDI. This type of UI is highly discouraged and is never used in any reasonable professional UI. SDI with docking or tabbed UI is much more convenient and easier to implement.

See:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages[^],
Question on using MDI windows in WPF[^],
MDIContainer giving error[^].

—SA


这篇关于在MDI表单中使用自定义子表单的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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