为什么我的MDI子窗体没有显示阴影? [英] Why aren't my MDI child forms showing a shadow?

查看:92
本文介绍了为什么我的MDI子窗体没有显示阴影?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,当我将窗体作为主MDI父窗体的子窗体创建时,该子窗体停止在窗体后面显示Windows 7默认阴影效果。如何获得子表格阴影显示?

In my application when I make a form as a child form of my main MDI parent form, the child form stops showing Windows 7 default shadow effect behind forms. How do I get child forms shadow to show?

Form obj = Application.OpenForms["My_form"];
if (obj != null)
{
    obj.Focus();
}
else
{
    My_form c = new My_form();
    c.MdiParent = this;
    c.Show();
}


推荐答案

我终于得到了答案,如果我将子窗体做成

I got the answer finally , if i make a form as child form like

c.MdiParent =this;

如果您希望将表单显示为默认窗口,例如表格
不会成为表格的MDI父项!

It makes the appearance of the form as flat , If you like to show the form as default windows like forms dont make the form's mdi parent !

这篇关于为什么我的MDI子窗体没有显示阴影?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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