Public feed #724234

Unnamed

public text v1 · immutable
Raw Edit
·published 2007-10-03 13:20 UTC
rendered paste body
Public Function FindFormByType(ByVal t As Type) As Form

        Dim frm As Form

        For Each frm In TheFormBandeau.MdiChildren
            If frm.GetType Is t Then
                Return frm
            End If
        Next

        For Each frm In TheFormBandeau.OwnedForms
            If frm.GetType Is t Then
                Return frm
            End If
        Next

        Return Nothing

    End Function