How do I detect when a Windows form is being closed?
When a user closes a Windows form that Robot Studio created, the system actually hides the form instead of closing it.
To detect when a user has closed a Robot Studio-created Windows form, use the VisibleChanged event. Check the Visible property after this event has occurred, and if it is False, then the form has been closed.
Previous topic Does spyware detection software affect Studio's ability to interrogate and integrate applications? Next topic How do I determine the active window in a Java MDI application?