Results 1 to 2 of 2

Thread: system tray icon removing

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Location
    USA, Virginia
    Posts
    25
    how can i remove a certain icon from the system tray without crashing the program?... for example: remove the dial-up connection icon without terminating my connection.

    i have seen a program do this, but i'm not sure how it worked.

    thanks

  2. #2
    Guest
    you can use Shell_NotifyIcon

    Code:
    Private Declare Function Shell_NotifyIcon Lib "shell32.dll" Alias " Shell_NotifyIconA" (ByVal dwMessage As Long, lpData As NOTIFYICONDATA) As Long
    
        Private Const DELETE_ICON = 2
    
        Call Shell_NotifyIcon(DELETE_ICON, IconData)

    I am not sure what you would put for the second argument though.

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