Código [Seleccionar]
Private Declare Function IsIconic Lib "user32" (ByVal hwnd As Long) As Long
Dim x As String
Private Sub Timer1_Timer()
If IsIconic(Me.hwnd) = 0 Then
If x = "" Then MsgBox "maximizado"
x = "x"
Else
If x = "x" Then MsgBox "minimizado"
x = ""
End If
End Sub