View Single Post
  #5 (permalink)  
Old February 18th, 2008, 08:00 AM
samjudson's Avatar
samjudson samjudson is offline
Friend of Wrox
Points: 4,453, Level: 28
Points: 4,453, Level: 28 Points: 4,453, Level: 28 Points: 4,453, Level: 28
Activity: 60%
Activity: 60% Activity: 60% Activity: 60%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 1,359
Thanks: 0
Thanked 31 Times in 31 Posts
Default

Inside your MdiParent you will have a property, something like this:

public bool IsFormOpen
{
  get { return isFormOpenVariable; }
}

In your child you will do the following:

MyMdiParent parent = (MyMdiParent)this.MdiParent;
if( !parent.IsFormOpen )
{
  // whatever
}


/- Sam Judson : Wrox Technical Editor -/
Reply With Quote