Results 1 to 3 of 3

Thread: minimize maximize

  1. #1

    Thread Starter
    Hyperactive Member PITBULLCJR's Avatar
    Join Date
    Nov 1999
    Location
    New York
    Posts
    408

    Post

    I know you can put code in vb for when someone hits the x to kill the program you can have it so it doesn't unload by using
    form_unload(cancel as integer) or something along those lines it doesn't matter but is there code that says when the maximize button is hit then something happens or if the minimize button is hit then something happens?

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Post

    Yes, you can use the Form_Resize event and check the value of the WindowState property:

    Private Sub Form_Resize()
    Select Case Me.WindowState
    Case vbMinimized
    'Do Whatever
    Case vbMaximized
    'Do something else...
    End Select
    End Sub

    Good luck!

    ------------------
    Joacim Andersson
    [email protected]
    [email protected]
    www.YellowBlazer.com



  3. #3

    Thread Starter
    Hyperactive Member PITBULLCJR's Avatar
    Join Date
    Nov 1999
    Location
    New York
    Posts
    408

    Post

    Thanks you so much it works great. Now i can put the finishing touches on my project. Thanks a lot!!!!!!

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