Results 1 to 6 of 6

Thread: Window Control

  1. #1
    Guest
    I need to minimise a form, without using the buttons on the app. bar. I was thinking something like:

    Form1.minimize

    but this doesn't work. Has anyone got any ideas?

  2. #2
    Addicted Member
    Join Date
    Jan 2000
    Location
    Peterborough, Cambs, England
    Posts
    176
    Form1.WindowState = 1

  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    I always recommend using constants because the code is much clearer:
    Code:
    Form1.WindowState = vbMinimized
    Form1.WindowState = vbMaximized
    Form1.WindowState = vbNormal

  4. #4
    Addicted Member
    Join Date
    Jan 2000
    Location
    Peterborough, Cambs, England
    Posts
    176
    um...

    dude, Form1.WindowState = 1 is a constant.

  5. #5
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Of course it is! I meant using named constants.

  6. #6
    Addicted Member
    Join Date
    Jan 2000
    Location
    Peterborough, Cambs, England
    Posts
    176
    OK, I'll let you off...

    this time.

    Bwahahahahaha

Posting Permissions

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



Click Here to Expand Forum to Full Width