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
Printable View
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
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.