📜  c# 消息框结果 - C# 代码示例

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

代码示例2
//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
    ;