Fork me on GitHub

winfrom提示框

 

1  if (MessageBox.Show("是否要删除数据", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
2             {
3                 MessageBox.Show("yes");
4             }
5             else
6             {
7                 MessageBox.Show("No");
8             }

 

posted @ 2017-08-31 18:03  都一样*  阅读(120)  评论(0编辑  收藏  举报