/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public static Form IsFormAlreadyOpen(Type FormType) { foreach (Form OpenForm in Application.OpenForms) { if (OpenForm.GetType() == FormType) return OpenForm; } return null; }
URL: http://hashfactor.wordpress.com/2009/01/28/c-check-if-a-form-is-already-opened/