Where FormFromHwnd will be coded like this.
___
[tt]
Function FormFromHwnd(hWnd As Long) As Form
Dim F As Form
For Each F In Forms
If F.hWnd = hWnd Then
Set FormFromHwnd = F
Exit For
End If
Next
End Function[/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.