private void button2_Click(object sender, EventArgs e)
{
MessageBox.Show("ABC",MessageBoxButtons.OKCancel);
}
if(DialogResult.OK==MessageBox.Show("ABC",MessageBoxButtons.OKCancel))
{
//点击了OK
}
else
{
//点击了Cancel
}
时间:2022-01-17 00:59:02
private void button2_Click(object sender, EventArgs e)
{
MessageBox.Show("ABC",MessageBoxButtons.OKCancel);
}
if(DialogResult.OK==MessageBox.Show("ABC",MessageBoxButtons.OKCancel))
{
//点击了OK
}
else
{
//点击了Cancel
}
MessageBox confirm弹框确认和取消按钮的使用-回调
2023-09-02
elementui Messagebox确认消息弹框中没有取消按钮
2024-08-03
2024年英语素材:关于学习的英语谚语1500字作文素材大全
2024-08-19