我检查时有一个单选按钮,它应该显示一条消息
DialogResult click = MessageBox.Show("Would you like to convert the actual values to US Customary ?\n Clicking No changes just the unit system.", "Change Unit Systems to US Customary", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2);
if (click == DialogResult.Yes)
{
//some code
}
如何从按钮中的内部代码答复此消息,否则为否?
我不想显示消息
单击单选按钮时,将发送适当的委托函数(操作)和消息框结果。该操作处理是/否情况。