DialogResult resul = MessageBox.Show("确定提交吗?", "提交", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if(result==DialogResult.Yes)
{
xxxxx
}