locked
How to detect if a dialog window is opened? RRS feed

  • Question

  • How to detect if a dialog window is opened from the main application?

    Thursday, March 22, 2012 2:58 PM

Answers

  • You could use a  variable to store the status in the main application.

    When you are calling any dialog window, just increment it by one.

    And in the dialog's closing event, decrement it by one.

    That way, you can see the status of your dialogs by seeing the count of the variable.

    Tuesday, March 27, 2012 5:06 AM