Example #1
0
 private void DestroyShadow()
 {
     if (m_fmShadow != null)
     {
         // if the shadow has an owner, we need to attach the balloon to the owner and
         // sever existing owned form relationships
         if (m_fmShadow.Owner != null)
         {
             this.Owner = m_fmShadow.Owner;
             m_fmShadow.RemoveOwnedForm(this);
             this.Owner.RemoveOwnedForm(m_fmShadow);
         }
         m_fmShadow.Close();
         m_fmShadow.Dispose();
         m_fmShadow = null;
     }
 }