Search code examples
c#winformsmdi

WinForms MDI : How to show MdiChild in Parent TableLayoutPanel's line?


I'm following this tuto for create a multipage app in Winform. My MdiParent have

MainForm IsMdiParent = true

HomeForm frmHomeForm;
private void HomeIcon_Click(object sender, EventArgs e)
    {
        if(frmHomeForm == null)
        {
            frmHomeForm = new HomeForm();
            frmHomeForm.MdiParent = this;
            frmHomeForm.Show();
        }
        else
        {
            frmHomeForm.Activate();
        }
    }

If someone can help, it's first time I used MDI.


Solution

  • I was trying to show MdiChild on my MdiParent who was covered by another control. I remove the control on my MdiParent and my MdiChild now appear correctly in empty area.