发布网友 发布时间:2022-04-22 14:59
共1个回答
热心网友 时间:2023-11-09 22:57
panel 1
panel 2
button 上
this.panel 2.Visible = false;
if(this.panel 1.Visible)
{MessageBox.Show("成功");}
eles
{
panel 1.Visible = true;
panel 2.Visible = false;
}
button 下
if(this.pane2 1.Visible)
{MessageBox.Show("成功");}
eles
{
panel 2.Visible = true;
panel 1.Visible = false;
}
这就可以了