C# 控件的显示与隐藏
通过button1来改变listview1的显示和隐藏:
private void button1_Click(object sender, EventArgs e)
{
listView2Visibility = !(listView2Visibility);
}
public bool listView1Visibility
{
get
{
return listView1.Visible;
}
set
{
listView1.Visible = value;
}
}