从引用的程序集中取消MessageBox [英] Suppress MessageBox from a referenced assembly

查看:74
本文介绍了从引用的程序集中取消MessageBox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何禁止显示消息框,该消息框来自对我不拥有(也没有代码)的程序集的引用?

How do I suppress a MessageBox from showing that comes from a reference to an assembly that I do not own (nor have the code for)?

例如,我的应用程序(MyApplication.exe)引用由其他人(SomeoneElsesAssembly.dll)编码的程序集.在此程序集中,我正在调用一个静态方法,该方法将执行其预期的操作,但还会触发一个我想抑制的MessageBox.

For example, my application (MyApplication.exe) is referencing an assembly coded by someone else (SomeoneElsesAssembly.dll). Inside of this assembly I'm calling a static method, which does what it's supposes to, but also is firing a MessageBox that I want to suppress.

我认为有一种方法可以引用非交互模式下的程序集或类似的方式.

I thought there was a way to reference an assembly in Non-Interactive mode or something along these lines.

谢谢您的帮助.

-杰西·胡尔

推荐答案

查看全文

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