[AccessD] How to find out wether a form has been minimized

Brett Barabash BBarabash at TappeConstruction.com
Tue Jun 24 09:10:29 CDT 2003


Michael,
Include this code in your form's module:
 
Private Declare Function IsIconic Lib "user32" (ByVal hwnd As Long) As Long
 
Private Sub Form_Resize()
 
    If IsIconic(Me.hwnd) <> 0 Then
        MsgBox "Minimized"
    Else
        MsgBox "Not minimized"
    End If
 
End Sub


-----Original Message-----
From: Michael Brösdorf [mailto:michael.broesdorf at web.de]
Sent: Tuesday, June 24, 2003 8:56 AM
To: accessd at databaseadvisors.com
Subject: [AccessD] How to find out wether a form has been minimized


Dear group,
 
is it possible to find out wether a form has been minimized in the
OnResize-Event of that form(something like Me.WindowState=acMinimized)?
 
TIA,
 
Michael


--------------------------------------------------------------------------------------------------------------------
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.
If you have received this email in error please notify the
originator of the message. This footer also confirms that this
email message has been scanned for the presence of computer viruses.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of Tappe Construction Co.

Scanning of this message and addition of this footer is performed
by SurfControl E-mail Filter software in conjunction with 
virus detection software.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://databaseadvisors.com/pipermail/accessd/attachments/20030624/8f016eab/attachment-0001.html>


More information about the AccessD mailing list