By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,476 Members | 889 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,476 IT Pros & Developers. It's quick & easy.

How to remove the systray icon of another application

P: 1
To restore an application from "minimize to system tray" mode to "Normal" mode (visible) from another application, I am using "Showwindow" method of "user32.dll". The API is working as expected i.e. displaying the application on Normal mode.
Moreover, I want to remove that application's System tray icon as soon as its mode changes from "minimize to system tray" to "Normal".

I had tried using "Shell_NotifyIcon" method of "shell32.dll" by passing "NIM_DELETE" & reference of "NOTIFYICONDATA" but no luck.
The API method declaration is as follows:
Shared Function Shell_NotifyIcon(ByVal dwMessage As UInteger, ByRef pnid As NOTIFYICONDATA) As Boolean

Can anyone suggest me a solution for solving this issue.
May 16 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.