C# 一个不错的通知框
有没有一个漂亮的通知框的代码(即使是 dll 也可以) 就像卡巴斯基杀毒软件显示的那样?因为在我的脚本中我使用了很多 消息框和最终用户开始抱怨他们每次都需要单击“确定”。
Is there any code for a nice notice box (Even a dll would be fine)
Like the one kaspersky antivirus shows? Because in my script I use a lot of
message box and the end-user start to complain that they need to click okay every time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以在 CodeProject 上查看这个示例。
You can look at this exemple on CodeProject.
我建议您创建一个自定义控件,它继承自消息框,然后根据您的喜好进行设计。
I suggest you create a custom control, which inherits from the message box and then you design it as per your liking.
也许不是您问题的实际答案,但如果您的用户抱怨他们需要“点击离开”的消息框数量(就像您自己提到的),您是否可能使用它们太多或出于错误的原因?
也许在某些情况下显示消息的其他方式更合适,例如状态栏、带有消息日志的对话框,或者在应用程序中构建对话框/工作流的不同方式?
Maybe not an actual answer to your question, but if you users complain about the number of message boxes they need to "click away" (like you mention yourself), are you perhaps using them too much or for the wrong reasons?
Perhaps other ways of showing messages are more approriate in some cases, like a status bar, a dialog with a message log, or different way of structuring dialogs/workflows in your application?