8中的MDI应用程序

8中的MDI应用程序

本文介绍了Windows 8中的MDI应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!我有一个问题困扰了我很长时间,到目前为止我找不到答案.为什么在MDI应用程序上,子窗体看起来像基本的Aero样式,而不是Windows 8中的复古样式?我真的不明白 微软的人们如何错过它?

Hello everybody! I got a question that really bothers me for a long time and which I couldn't find an answer to so far. Why the hell on MDI applications the child forms looks like basic aero style instead of retro style in windows 8? I really don't understand how the people at Microsoft missed it? Is the a way to change it?

推荐答案

感谢您的信息.

我不太确定您想要哪种子表单样式.您能否分享目标WinForm样式的快照?我想知道您所关心的确切风格.

I'm not so sure about what child form style you would like.  Could you please share a snapshot of your target WinForm style? I'd like to know the exactly style you concerned.

顺便说一句,您可以使用我在此处列出的代码来更改子窗体的样式:

By the way, you can change the child form style with the code I listed here:

private void mnuFileNewMultiple_Click(object sender, System.EventArgs e){frmMChild objfrmMChild = new frmMChild();objfrmMChild.MdiParent = this;objfrmMChild.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; ;objfrmMChild.Show();			}

通过参考此页面,将您的子FormBoderSyle设置为您喜欢的属性:

Set your child FormBoderSyle to the property you like by referring to this page:

http://msdn.microsoft.com/en-us/library/hw8kes41.aspx.

例如,我的MDI应用程序:

For example, my MDI application:

更改样式后,其效果如下:

After changing the style, it performs like this:

此样式似乎类似于Win 8 Metro样式.

This style seems like Win 8 Metro style.

请随时告诉我您的结果.

Please feel free to let me know your result.

此致


这篇关于Windows 8中的MDI应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!