MDI形式变得像影子 [英] mdi form become like shadow

查看:97
本文介绍了MDI形式变得像影子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在开发一个窗口应用程序
当我使用showdialoge()打开我的孩子表单时
我希望我的MDI父母成为像影子之类的东西
表示子窗体显示良好,而mdi窗体则不是

解决方案

如果这是MDI解决方案,那不是您真正要做的-MDI父级是容器对于它的所有子窗体,因此,如果将其变暗并禁用,则子窗体也会发生同样的情况.

如果您要执行的操作是显示一个表单来代替MDI,则在MDI表单上使用Hide方法,并使用非MDI子表单作为您调用ShowDialog的子表单.只要先隐藏,然后再显示对话框,就可以.


此链接上有一个不错的教程
你为什么没看到这个...
^ ]

-Kshitiz chandra
www.kshitizchandra.com


hi
i am developing a window application
while i am opening a my child form using showdialoge()
i want my mdi parent become some thing like shadow
means child form shown good while mdi form not

解决方案

If this is an MDI solution, then that isn''t really what you do - the MDI parent is a container for all it''s child forms, so if you dim it out and disable it, then that same will happen to it''s children.

If what you are trying to do is to display a form in place of the MDI, then use the Hide method on the MDI form, and use a non-MDI child form as the one you call ShowDialog on. Provided you Hide first, then ShowDialog, it should work.


there is a nice tutorial on this link
why dont you see this...
Creating MDI application using C# (Walkthrough)[^]

- Kshitiz chandra
www.kshitizchandra.com


这篇关于MDI形式变得像影子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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