Results 1 to 6 of 6

Thread: Window state

  1. #1
    Join Date
    Oct 2003
    Location
    Lebanon
    Posts
    44

    Unanswered: Window state

    Dear fellows, does anyone know a way to make an application check wether the Database window is minimized?
    thank you.
    Dani_30

  2. #2
    Join Date
    Jun 2005
    Location
    Richmond, Virginia USA
    Posts
    2,763
    Provided Answers: 19
    HAd this squirrelled away in my reference archives. I've never used it but it purports to do what you requested:

    http://msdn.microsoft.com/archive/de...SampleCode.asp

    Either scroll way down or copy the title below and put in your browser search:

    How to Retrieve the MS Access Window Handle

    Hope it helps! But like I said, I've never used it!
    Hope this helps!

    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  3. #3
    Join Date
    Nov 2005
    Posts
    113
    Try this:

    If Me.Maximized Then
    MsgBox "The form is maximized"
    ElseIf Me.Minimized Then
    MsgBox "The form is minimized"
    Else
    MsgBox "The form is not maximized or minimized"
    End If

  4. #4
    Join Date
    Jun 2005
    Location
    Richmond, Virginia USA
    Posts
    2,763
    Provided Answers: 19
    an application check wether the Database window is minimized?
    OP doesn't ask if the form is minimized, but if the Database Window is minimized!
    Hope this helps!

    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  5. #5
    Join Date
    Nov 2005
    Posts
    113
    OOPS - sorry

  6. #6
    Join Date
    Jun 2005
    Location
    Richmond, Virginia USA
    Posts
    2,763
    Provided Answers: 19
    Actually, I thought the same thing when I first read it! LOL!
    Hope this helps!

    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •