Detecting if an access form is maximized

V

Van T. Dinh

You can use the WinAPI IsZoomed().

In a Standard Module, add the following declaration:

Declare Function IsZoomed Lib "user32" ( _
ByVal hwnd As Long) As Long

You can then check whether the Form Object F is maximized
or not by:

If IsZoomed(F.hwnd) <> 0 Then
'Form F is maximized
Else
'Form F is not maximized.
End If

HTH
Van T. Dinh
MVP (Access)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top