Quote:
quote:thanks
but i want to don't alow the same forms to be load in MDIParent but i wanna to allow the diferrents mdi Chid be able to add to the mdiParent
|
Well, I had the same problem as u had before.. My way of solving it was to, every time the user asked to create a new MDI child, you give the child a name.. ie:
newMdiChild.Name = "name";
the trick is, before u create the new mdi child, you check if there's any other mdi childs with that same name
ie:
foreach (mdiChild mdi in this.mdichildren)
{
if (mdi.Name == "name")
{
mdi.Close();
}
}
something like that (dont have my code up atm.. so rewrite it with correct spelling and stuff ^^ )
hope it'll help
Enuff enuff!
C# btw.