Results 1 to 2 of 2

Thread: Minimize Event? [resolved]

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 1999
    Posts
    164

    Question Minimize Event? [resolved]

    How do I trap for the minimize event of a form?

    thanks,
    Last edited by Shurijo; Jul 15th, 2003 at 10:08 AM.
    -Shurijo

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    You need to override the OnSizeChanged Event , then assign give it false value to cancel minimizing as follow :

    VB Code:
    1. Protected Overrides Sub OnSizeChanged(ByVal e As System.EventArgs)
    2.         MyBase.OnSizeChanged(e)
    3.         Select Case WindowState
    4.  
    5.             Case FormWindowState.Minimized
    6.                 Me.WindowState = False
    7.  
    8.         End Select
    9.     End Sub

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