使用安装程序自定义操作显示MessageBox [英] Displaying a MessageBox with a Setup Custom Action

查看:80
本文介绍了使用安装程序自定义操作显示MessageBox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个安装项目,并有一个安装程序类来覆盖安装自定义操作。在其中,我向用户询问MessageBox中的问题,并根据用户点击的按钮继续进行。但是,大多数时候(不是每次)MessageBox都显示在"设置"窗口后面。如果用户不知道这可能发生,并且用户看起来安装程序已挂起。如果您知道MessageBox回到那里,则可以移动设置窗口以使MessageBox可见。是否有任何方法可以强制此窗口始终"在顶部"?

解决方案

您可以尝试按照本文中的示例进行操作: TopMost MessageBox

顺便说一句,这个论坛是关于Visual Studio文档的问题。如果您有未来的编程问题,我建议您在以下语言论坛中发布: http:// social.msdn.microsoft.com/Forums/en-US/categories

HTH,

I have created a Setup project and have an installer class that overrides the Install custom action. In it I ask the user a question in a MessageBox and proceeds based on which button the user clicked on. However, most of the time (not every time) the MessageBox is displayed BEHIND the Setup window. If the user is unaware that this can happen and it does it appears to the user that the Setup has hung. If you know the MessageBox is back there, you can move the setup window so that the MessageBox is visible. Is there any way to force this window to always "be on top"?

解决方案

You could try following the example in this article: TopMost MessageBox.

BTW, this forum is meant for questions regarding the Visual Studio documentation. If you have future programming questions, I recommend posting them in one of the language forums located here: http://social.msdn.microsoft.com/Forums/en-US/categories

HTH,


这篇关于使用安装程序自定义操作显示MessageBox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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