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_NotifyIc on" method of "shell32.dl l" by passing "NIM_DELETE " & reference of "NOTIFYICONDATA " but no luck.
The API method declaration is as follows:
Shared Function Shell_NotifyIco n(ByVal dwMessage As UInteger, ByRef pnid As NOTIFYICONDATA) As Boolean
Can anyone suggest me a solution for solving this issue.
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_NotifyIc on" method of "shell32.dl l" by passing "NIM_DELETE " & reference of "NOTIFYICONDATA " but no luck.
The API method declaration is as follows:
Shared Function Shell_NotifyIco n(ByVal dwMessage As UInteger, ByRef pnid As NOTIFYICONDATA) As Boolean
Can anyone suggest me a solution for solving this issue.