如何在味精盒中单击任何按钮以消除味精盒? [英] How to dismiss the msg box for any click on the msg box?

查看:107
本文介绍了如何在味精盒中单击任何按钮以消除味精盒?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想关闭该消息框,以免单击该消息框.请帮我解决这个问题.

I want to dismiss the message box for any click on the message box. Please help me with this.

推荐答案

没有简单的方法(我在这里谈论的是winforms,因为我不确定这个问题中没有标签问题是什么).您必须编写自定义控件才能实现这一点.
There is no simple way to do it (I am talking about winforms here as there is no tag in the qustion I am not sure what’s the question is related to). You will have to write custom control to achieve that.


是的,您可以轻松地做到这一点.永远不要做!不要让您的用户生气.消息框是消息框,不是在您实现了这样的功能"之后.

—SA
Yes, you can easily do it. Never do it! Don''t make your user mad. Message box is message box, not after you implement a "feature" like that.

—SA


如果这是基于MFC的,则可以截获进入对话框的消息,并在捕获要触发此消息的消息时将其关闭效果(鼠标移开,您可能会想到其他效果),但是我同意SA的说法,这似乎根本不是理想的效果.
If this is MFC based, you can just intercept the messages going to the dialog and dismiss it when you catch the messages that you want to trigger this effect (mouse down and you may think of others), but I do agree with SA, this doesn''t seem like a desirable effect at all.


这篇关于如何在味精盒中单击任何按钮以消除味精盒?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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