How do you determine if a form is hidden or closed.
I've tried using the "created" property but I'm getting mixed results. If the form is closed and I try an "if formname.visible = false" type query then I get True where the form is hidden or closed. I can put in a workaround but I'm ideally looking for an answer to this.
NB. A modification to the IsLoaded function below is required to capture hidden forms.
Function IsLoaded(ByVal Loadedfrm As Form) As Boolean
Dim frm As Form
For Each frm In My.Application.OpenForms
If frm.Name Is Loadedfrm.Name Then
IsLoaded = True
IsLoaded = False