我winForm界面里有一个RadioButton,我在后台代码里this.RadioButton1.checked=true;
但是每次打开界面的时候还是没选中,请问是为什么?
但是每次打开界面的时候还是没选中,请问是为什么?
解决方案 »
- 让.NET程序快速释放内存的办法
- [求助]try...catch 无效??
- gridview 固定显示数据行的问题 急!
- 请教一个关于播放WAV的问题
- ++++++大哥们,你们做.net程序时用什么模式??什么叫工厂模式?有必要吗???
- “笨头笨脑”的科学巨人爱因斯坦
- 我在c#调试模式中出现的问题提示“没有可用于当前位置的源代码”
- C# 窗体代码中能调用c函数吗,详细进(新手求指导)?
- 请问一个界面设计的问题????
- C# SetCursorPos(); 与实际坐标不符
- 请教各位:c# winform使用的3D绘图控件有哪些?
- vs2010 winform应用在windows7下无法创建测试证书
if(.....)
{
this.RadioButton1.checked=true;
}
else
{
this.RadioButton2.checked=true;
}
我调试进了if里面,执行了this.RadioButton1.checked=true,可当页面加载出来,radiobutton1没有被选中,请教高人!~~
{
int i = 1;
if (i == 1)
{
this.radioButton1.Checked = true;
}
else
{
this.radioButton2.Checked = true;
} }
是这样吗?我运行了没问题