您的位置:首页 > 其它

为什么CheckBox只能控制Panel控件的显示,不能控制它的隐藏呢?

2007-05-22 15:08 471 查看
为什么CheckBox只能控制Panel控件的显示,不能控制它的隐藏呢?

原因:
private void CheckBox1_CheckedChanged(object sender, System.EventArgs e)
{
if( this.CheckBox1.Checked == (这里少了一个等于号)true)
{
this.Panel1.Visible=true;
}
else
{
this.Panel1.Visible=false;
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: