473,387 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to remove the systray icon of another application

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
0 1317

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

Similar topics

2
by: David | last post by:
Everyone, Windows 2000/XP ..NET Framework 1.1 ..NET Development Environment 2003 I am having an issue with the .NET deployment wizard. I go and setup the Add/Remove programs icon in my...
6
by: Action | last post by:
I can add a systray icon in normal windows application... but when i do it in windows service, the systray icon just don't show up is that because i don't have any "component" to contain the...
1
by: Fast Eddie | last post by:
Can anyone tell me a good way to make a blinking systray icon? I want it to alternate between two icons. I've tried toggling between two notifyIcons and alternating the visible variable - but that...
0
by: Vinay Agarwal | last post by:
Hello, I am writing an application that wants to monitor another application's state (on the same computer). This other application is a commercial application and I do not have access to its...
16
by: Dominique Vandensteen | last post by:
I want to get the icon from my application exe file dim myIcon as Icon = ... -> "myApplication.exe,0" how can I do that?
4
by: Nick Craig-Wood | last post by:
Does anyone have some hints / tips / experience with making a cross platform systray icon? It should work on Windows, Gnome and KDE at minimum. I've seen the win32all code which is very similar...
8
by: Nate | last post by:
ok, So .net makes it pretty easy to add a systray icon now. However, does anyone know of a way to force the text (tooltip) to appear. Instead of it only appearing when the mouse goes over it...
0
by: Steve | last post by:
I've created a new VB 2005 project that I've been doing preliminary test installs for. In the development project, I've set the applications icon to an ico file. In the installation project I've...
1
by: EgoSum | last post by:
How do I change default startup icon in application? Thanks in advance.
1
by: josejoa | last post by:
Someone is so kindly to tell me how can I achieve the handle and corrdinates of an specific systray icon when mouse enter and exit of it? Thank you.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.