C#Winform一个窗体中有两个button即button1、button2当点击button1的时候不显示button2
C#Winform一个窗体中有两个button即button1、button2当点击button1的时候不显示button2,在线求大神解答
------解决方案--------------------button1.Click
{
button2.Visable=false;
}
------解决方案--------------------button2.Visabal=false;
------解决方案--------------------写个button1的触发事件,当点击button1时,隐藏(hidden)button2
------解决方案--------------------button2.Visable=false!
------解决方案--------------------private void button1_Click(object sender, EventArgs e)
{
button2.Visible = false;
}