C# – Check if Form is already running

To check if a form is already running you’ll have to look for it in the Application.OpenForms collection. When a form is opened it is added to that collection.

Here’s a boolean method that checks whether a form is open or not :

Example use:

Thanks.

If you have any questions, don’t hesitate to post a comment.

Leave a Reply

Your email address will not be published. Required fields are marked *