CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 1999
    Posts
    4

    Can I trap the Minimize action by the User in a Form

    Hi,
    I am working on a project that will be runing on a Win-NT server for all the time ie. 24 Hrs.

    If the user minimizes the form the application has to be seen in the system tray some thing similar to Task Manager of Win-Nt.

    Thanks in advance,

    Britto


  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Can I trap the Minimize action by the User in a Form

    You can use code similar to :


    private Sub Form_Resize()
    If me.WindowState = vbMinimized then
    MsgBox "Window is minimized!"
    End If
    End Sub




    - to trap the minimized state of the window. You can then use our own AndyK's code from


    http://codeguru.developer.com/bbs/wt...age=0&Limit=25

    to place an icon in the system tray.


    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

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

Featured