MDI Resigning Help Needed
Posted: Mon Mar 02, 2009 3:14 pm
Ok, so my program has an MDI interface. I have two maps open. I have a button on my Menu Strip that is supposed to resign all open maps in the container. But it seems to resign one of the maps twice... This is my code:
Can someone tell me what I'm doing wrong? This has been racking my brain for hours.
Code: Select all
var parent = (Main_Form)MdiParent;
foreach (Form f in parent.MdiChildren)
{
((Map_Form)f).map.ResignMap(map);
}