高手们帮解一下啊,谢谢了
程序代码: private void button1_Click(object sender, EventArgs e)
{
if(this.radioButton1.Checked==true){
MessageBox.Show(this.radioButton1.Text,"",MessageBoxButtons.OK);
}
else if (this.radioButton2.Checked == true)
{
MessageBox.Show(this.radioButton2.Text,"",MessageBoxButtons.OK);
}else{
MessageBox.Show(this.radioButton3.Text, "", MessageBoxButtons.OK);
}
}
在窗体中点击保存的时候提示框提示出所选择的项,少的话判断Checked属性为true,但要是有多个选项那该怎么得到所选择的项?怎么去循环得到,谢谢了!
[ 本帖最后由 a49877408 于 2012-1-4 21:49 编辑 ]









