Results 1 to 6 of 6

Thread: Minimizing An Application To The System Tray

Threaded View

  1. #4
    Addicted Member DJ_Catboy's Avatar
    Join Date
    Jan 2003
    Location
    Suffolk, UK
    Posts
    159
    Hi,

    Try this: in the Form_Resize event...

    Code:
    select case form.windowstate
      case vbMinimised
        form.showintaskbar = false
        Shell_NotifyIcon NIM_ADD, nid
      case vbNormal
        form.showintaskbar = true
        Shell_NotifyIcon NIM_DELETE, nid
    
    end select
    The Shell_NotifyIcon calls just give the impression of "restoring from the tray to an app" and minimising to the tray.

    Maybe this works? Hope it helps...

    DJ
    Last edited by DJ_Catboy; Aug 6th, 2003 at 10:55 AM.

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