Make your own free website on

[an error occurred while processing this directive]
Private Declare Function IsZoomed Lib "user32" (ByVal hwnd As Long) As Long
Private Sub Form_Activate()
    'KPD-Team 2000
    Me.AutoRedraw = True
    Me.Print "Was the window maximized onstartup? " + Str$(CBool(IsZoomed(Me.hwnd)))
    Me.WindowState = vbMaximized
    Me.Print "Is the window now maximized? " + Str$(CBool(IsZoomed(Me.hwnd)))
End Sub

Copyright © 1998-2000, The KPD-Team.
Send mail to with comments about this web site.
This site is located at