i have one MDI called MDIMain and 2 form the first one is MAINMENU and the second one is profile, in my mainmenu form i have a button and if i click the button it shows the profile form but the problem is that when i click the mainmenu form anywhere the profile form go behind the mainmenu.
here is my code: this button is from Mainmenu form
private void Button5_Click(object sender, EventArgs e)
{
profile frm = new profile();
frm .MdiParent = this.ParentForm;
frm .Show();
}
edited: this is the code form my mdi
private void MDIMAIN_Load(object sender, EventArgs e)
{
MAINMENU mn = new MAINMENU();
mn.MdiParent = this;
mn.Show();
}