J
jag
Is it possible to detect when a form is maximised or restored? Does
anybody know how to detect when a form is
maximised or restored?
I have tried using the isZoomed function on my form activate
i.e
Sub Form_Activate()
Dim intWindowHandle As Long
intWindowHandle = Screen.ActiveForm.hWnd
If Not IsZoomed(intWindowHandle) Then
DoCmd.Maximize
End If
End Sub
but I get an error saying that an active window has to be opened.
any ideas?
Thanks
Dee
anybody know how to detect when a form is
maximised or restored?
I have tried using the isZoomed function on my form activate
i.e
Sub Form_Activate()
Dim intWindowHandle As Long
intWindowHandle = Screen.ActiveForm.hWnd
If Not IsZoomed(intWindowHandle) Then
DoCmd.Maximize
End If
End Sub
but I get an error saying that an active window has to be opened.
any ideas?
Thanks
Dee