private void toolStripButton7_Click(object sender, EventArgs e)
{
if(panel1.Visible = false)
{
panel1.Visible = true;
}
if (panel1.Visible = true)
{
panel1.Visible=false;
}
}
I have that code, and its suposed to change the visible property of a panel in WinForms, but it only works one time, and then, it never works again until I restart my program.
I first tried to add an else instead of two separate ifs, but that didn't solve my problem, and the panel is just not showing up after making it invisible.