c#Form问题

来源:百度知道 编辑:UC知道 时间:2024/06/03 16:31:41
this.Hide();
this.Visible = false;
this.Show();
this.Visible = true;

敲一下午的代码敲蒙了,这几句的区别是什么?

hide是隐藏的意思
visible也是隐藏的意思(可以传true和false)
show是显示
不懂问我我详细和你解释

看了源代码,你明白了吗?
public bool Visible
{
get
{
return this.GetVisibleCore();
}
set
{
this.SetVisibleCore(value);
}
}
public void Hide()
{
this.Visible = false;
}
public void Show()
{
this.Visible = true;
}

就一样