📜  c# 错误消息框 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:43.911000             🧑  作者: Mango

代码示例4
//MessageBox.Result
DialogResult result = MessageBox.Show("Do you like cats?", "Yes or No?", messageBoxButtons.YesNoCancel);

if (result == DialogResult.Yes)
    ;
else if (result == DialogResult.No)
    ;
else
    ;