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
  • 469350
    Suggested Answer
    Offline posted

    ToolTipFormEx is the form that is used to display Infragistics Tooltips from ToolTipManager or some other Infragistics control on the form. This form is not an MDI child and should only be in the OwnedForms collection which it is displayed. So perhaps you have a tooltip displayed when you are clicking the close button on the form.

    It sounds to me like the simplest thing to do would be to simply ignore forms of that type - or perhaps any form that does not have an MDIParent.

Reply Children