DialogResult result = MessageBox.Show("确定删除吗?", "删除", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (result == DialogResult.Yes)
{

//////

}
else
{
//////
}

 

if (MessageBox.Show("确定删除这 " + dgv_YuanGong.SelectedRows.Count.ToString() + " 条数据?", "温馨提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK)
  {

}

相关文章:

  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2022-02-25
  • 2021-11-20
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-10
  • 2021-11-29
  • 2022-02-13
  • 2022-03-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案