Table of Contents

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.


Suggest Edit
Did you find this content helpful?

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.