MessageBox失去了最大化MDI形式的关注 [英] MessageBox loses focus in maximized MDI form

查看:94
本文介绍了MessageBox失去了最大化MDI形式的关注的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个MDI应用程序(用.NET 2.0编写),该应用程序允许用户打开多个子窗体.子窗体始终在MDI父窗体中最大化.当MDI父级最大化并且我尝试执行MessageBox.Show时,MessageBox不显示.如果我执行alt选项卡(或什至只是按alt),则MessageBox会弹出到最前面.

I have an MDI application (written in .NET 2.0) which lets users open multiple child forms. The child forms are always maximized inside the MDI parent. When the MDI parent is maximized and I attempt to do a MessageBox.Show, the MessageBox doesn't show. If I do an alt-tab (or even just press alt) the MessageBox pops to the front.

有什么想法让吸盘开始出现吗?

Any ideas how to make that sucker show up to begin with?

这只是MDI父对象最大化时的一个问题...

This is only a problem when the MDI parent is maximized...

推荐答案

尝试使用 MessageBox.Show(窗口所有者,字符串消息,字符串标题) 将MDI应用程序设置为所有者,以便将MB显示在前面

Try using MessageBox.Show(Window owner, string message, string caption) Setting the MDI application as owner so the MB is shown in the front

嗯,您还应该在帖子中添加一些标签.

Ah, you should also add some tags to your post.

这篇关于MessageBox失去了最大化MDI形式的关注的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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