Results 1 to 5 of 5

Thread: Quick question - need an event for when form minimized

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2001
    Location
    Dover, UK
    Posts
    70

    Quick question - need an event for when form minimized

    Is there one?

    Or do i have to make one

    Thanks

  2. #2
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950
    How about using the Resize event and check if form state is vbminimized.

    If so, then do your stuff.

    VB Code:
    1. Private Sub Form_Resize()
    2.     If Me.WindowState = VBMinimized then
    3.         'do whatever it is you need to do
    4.     end if
    5. End Sub

  3. #3
    Addicted Member Supester's Avatar
    Join Date
    Nov 2001
    Location
    The Netherlands
    Posts
    220
    use the form resize event

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    What kind of event?
    How and from where do you want the event called?

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Apr 2001
    Location
    Dover, UK
    Posts
    70
    Perfect! Thanks for the solutiion. For the record, Im using it to control whether or not an ActiveX exe is visible.

    (It sits over my form at runtime and is set to always on top, but of course i need to hide it if my app is not active!)

    Thanks very very much

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