-1
My program is opening a form2 inside a panel in Form1, I want when I close this form2 my panel is invisible
private void button1_Click(object sender, EventArgs e)
{
panelPrinc.Visible = true;
Form2 frm2 = new Form2();
frm2.TopLevel = false;
frm2.AutoScroll = true;
panelPrinc.Controls.Add(frm2);
frm2.Show();
if ()
{
panelPrinc.Visible = false;
}
}
Thank you very much!!!
– nathanrck