Return to Snippet

Revision: 49438
at July 21, 2011 22:17 by georgecucoreanu


Initial Code
public static Form IsFormAlreadyOpen(Type FormType)
        {
            foreach (Form OpenForm in Application.OpenForms)
            {
                if (OpenForm.GetType() == FormType)
                    return OpenForm;
            }

            return null;
        }

Initial URL
http://hashfactor.wordpress.com/2009/01/28/c-check-if-a-form-is-already-opened/

Initial Description


Initial Title
C# detect if form is opened

Initial Tags


Initial Language
C#