I am using a panel in my main form to open every other form in my program, I have a menu on the left side that has buttons for every form and sub menus for other stuff, and it works when I have nothing already loaded in the panel but when I do the buttons on the menu sometimes work and sometime don't...
Here are two screenshots of the menu
and this is the code i use to open forms inside the panel
private void abrirHijo(object formHijo)
{
panelContenedor.Controls.Clear();
Form fh = formHijo as Form;
fh.TopLevel = false;
fh.Dock = DockStyle.Fill;
this.panelContenedor.Controls.Add(fh);
this.panelContenedor.Tag = fh;
fh.Show();
}