消息框的控制(msgbox) [英] control of message box (msgbox)
本文介绍了消息框的控制(msgbox)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在vb.net中控制消息框
在消息框上单击确定"后如何采取行动
多数民众赞成的意思是,在msgbox中单击确定"时,将转换为新格式
我知道您可以通过编码来帮助我
谢谢,对这个声音感到抱歉;)
how to control of message box in vb.net
how to get action when cliuck ok on message box
thats mean when click ok in msgbox translate in to new form
i know you can help me by coding
thanks and am sorry about this noise ;)
推荐答案
嗨
从消息框中单击按钮
Hi
to get the button click from a message box
DialogResult result = MessageBox.Show("Do you really want to continue?", "Test Dialog", MessageBoxButtons.YesNo);
if (result.ToString()=="Yes")
{
//Do something
}
有21种重载方法可用于控制消息框的显示
there are 21 overloaded methods there for control the display of the messagebox
if(result = DialogResult.Cancel)
{
//做点事
}
if(result = DialogResult.Cancel)
{
//Do something
}
这篇关于消息框的控制(msgbox)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文