I developed this module, examples on the internet seem to be much longer..
Can someone explain to me why my solution doesn't work?
Module modAPI
Declare Function SetForegroundWi ndow Lib "user32" (ByVal hwnd As Long) As
Long
Public Sub ActivateAppWind ow()
SetForegroundWi ndow(fMain.Hand le.ToInt32)
End Sub
End Module
Can someone explain to me why my solution doesn't work?
Module modAPI
Declare Function SetForegroundWi ndow Lib "user32" (ByVal hwnd As Long) As
Long
Public Sub ActivateAppWind ow()
SetForegroundWi ndow(fMain.Hand le.ToInt32)
End Sub
End Module
Comment