Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
200
What's wrong with ToolTipFormEx?
posted

I have a MDI window application, before closing the main form I first check to see if there is any child form opened, if so then the main form doesn't close. It is working fine except that some times (I don't know exactly when) after opening and closing any child forms there is still one form in OwnedForms, when I see the details of OwnedForms[0].Value it shows something like this: {Infragistics.Win.ToolTipFormEx, Text: }.  There is not opened any form except that one and it is not visible to the user, so the main form doesn't close.  Any idea? Here is the code I use to check before closing the main form. I apologize if this is not the right forum but I don't know wich one to use for this.

private void MainForm_Closing( object sender, System.ComponentModel.CancelEventArgs e )
{
  if( this.OwnedForms.Length > 0 )
  {
        e.Cancel = true;
  }
}

Parents Reply Children