C#控件 本帖最后由 wltysy 于 2009-11-27 15:37:35 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你的ai是radioButton1_CheckedChanged函数里的一个局部变量,在button1_Click里面用肯定错了啊! string ai=string.Empty;private void radioButton1_CheckedChanged(object sender, EventArgs e){.....//}这样就都可以用了啊! [Quote=引用 4 楼 wltysy 的回复:]真蠢我,谢了啊 可以直接就在确定按钮的单击事件里这样写啊private void button1_Click(object sender, EventArgs e){ if (radioButton1.Checked == true) { MessageBox.Show("你的爱好是" + radioButton1.Text, MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("请选择!","提示!", MessageBoxButtons.OK, MessageBoxIcon.Information); } } 一个gridview 怎样把数据设置为自己的sql语句?先感谢前辈了! 如何用panel控件代替mdi窗体 [求助]xml生成treeview问题。。很头痛。。因为我很菜。。 vml语言的问题:为什么用vml语言写的直线代码显示的直线会被html的其它控件给挡住啊? 关于打印的问题 checkedlistbox求助,新手 大家别见怪哈 C# 类库 控件 大大们帮帮忙啊~ TreeView不能正常显示(所有节点都排在了同一行) 可否在Singleton类中添加属性? 变量未声明或从未赋值 问个VisualStudio安装的 线程什么时候开始?
private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
.....//
}这样就都可以用了啊!
真蠢我,谢了啊
{
if (radioButton1.Checked == true)
{ MessageBox.Show("你的爱好是" + radioButton1.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
MessageBox.Show("请选择!","提示!", MessageBoxButtons.OK, MessageBoxIcon.Information);
} }