在VB.NET中自定义消息框 [英] Customize Message Box in VB.NET

查看:247
本文介绍了在VB.NET中自定义消息框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然编码在某些情况下我需要控件像messgbox窗口上的CheckBox(就像不要再问我这个)..我怎样才能实现这一目标? Plz分享你的知识..

While Coding in some situation i required controls like CheckBox on messgbox window (Like "Dont Ask me this Again").. How can i achieve this ? Plz share your knowledge ..

推荐答案

直截了当的方法是设计你自己的对话框。

http://msdn.microsoft.com/en-us/library/aa983602(v=vs.71)。 aspx [ ^ ]
The straightforward way is to design your own dialog box.
http://msdn.microsoft.com/en-us/library/aa983602(v=vs.71).aspx[^]


请参阅...

A不再显示此.NET MessageBox 的复选框[ ^ ]

自定义消息框/ [ ^ ]

如何制作一个带有不要再问这个的MsgBox或者不要再问我VB6中的复选框? [ ^ ]
See...
A "Don't show this again" checkbox for the .NET MessageBox[^]
Custom-message-box/[^]
How do you make a MsgBox with a "Do Not Ask This Again" or "Don't Ask Me Again" Checkbox in VB6?[^]


你可以从我的文章开始,滚动你自己的MsgBox [ ^ ],然后根据需要自定义它。



如果需要在多次运行中保存复选框的值对于应用程序,请记住将其保留在某个位置,例如注册表。
You could start with something like my article, Roll Your Own MsgBox[^], then customize it as you see fit.

If you need to save the value of the checkbox across multiple runs of the application, remember to persist it somewhere, such as the registry.


这篇关于在VB.NET中自定义消息框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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