473,805 Members | 2,119 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Any way to get Windows to refresh the notify area?

I've a little piece of code that I sometimes need to use that kills a
running process when it stops responding. The process has a notification
icon that it displays in the system-tray area of the task bar. When its
process is killed, however, the icon stays in the system tray. The only way
to remove it is to move the mouse pointer over the top of it, at which point
the icon vanishes.

Is there any way (using the .NET framework or API calls) to get Windows to
refresh the notification area so that the orphaned icon will disappear on
its own?

TIA,

--

(O)enone
Feb 9 '06 #1
2 2497
"Oenone" <oe****@nowhere .com> schrieb:
I've a little piece of code that I sometimes need to use that kills a
running process when it stops responding. The process has a notification
icon that it displays in the system-tray area of the task bar. When its
process is killed, however, the icon stays in the system tray. The only
way to remove it is to move the mouse pointer over the top of it, at which
point the icon vanishes.


VB6 sample (documented in German):

<URL:http://www.activevb.de/rubriken/ausschreibungen/03_07_28_system tray/systemtray.html >

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Feb 9 '06 #2
Herfried K. Wagner [MVP] wrote:
VB6 sample (documented in German):
<URL:http://www.activevb.de/rubriken/ausschreibungen/03_07_28_system tray/systemtray.html >


Very very interesting, thanks for that Herfried! I'll get this converted
over to VS2005.

--

(O)enone

Feb 10 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
6478
by: Conax | last post by:
Hi there, My boss is hoping that I can come up with a page that displays some information. The information will always be displayed on specific part of the page, with auto refresh. But he doesn't want the whole page to be refreshed so that buttons and images around the information do not get reloaded each time. Is this really possible? Other pages on this site don't use frames, so this page can't use frams too. Creating an ActiveX...
5
4459
by: Steve | last post by:
Hi, I have a private website for 20 people that is similar to a web email client like hotmail. There are two frames, one on the left with links for "New", "History", "Todays" and a frame on the right with a table for viewing the contents of these messages. The left pane checks back with the server every few seconds to see if any new messages need to be processed and updates count accordingly.
1
1733
by: RA | last post by:
Hi I wonder if anyone tried this or know if it has been fixed. I am using vs .net 1.1 and have a windows form. In the form I have a DataGrid with the following format: 3 first Columns are of type text box and 5 last columns are of type checkbox(bool) I added some rows info. When the RowHeadersVisible = false here is the problem I see: When launching the application make sure to size down the window so that the
3
4480
by: Rob | last post by:
Can a form be opened from a Windows service? I have a windows service that I would like to open a form from a notify icon. I cannot get the Notify Icon to display nor can I open a form. Any help would be greatly appreciated. Rob
1
6748
by: Brian77 | last post by:
This is a hard question, but I can't think of anyway to do this. I have a game as part of my website/forum I use. The people there aren't very helpful lol, but they have areas they must travel in order to get from point A to point B. Example is using a GO button (Submit) to travel Up, one for Down...ect. It does call information from my database in order to make them get to point B. When clicking GO, they are taken to a page that tells them...
1
2080
by: rockdale | last post by:
Hi, all I am coding a asp.net application as user data entry and report interface. We also have another C#.net appplication (a server) does some other stuff, my webserver can send and receive message with the C#.net server application. Now the C#.net server application group want me to refresh my webpage to show the real time status when I receive a message from them. I do not think I can do that (correct me if I am wrong). On webserver...
10
3162
by: Piotr Nowak | last post by:
Hi, Say i have a server process which listens for some changes in database. When a change occurs i want to refresh my page in browser by notyfinig it. I do not want to refresh my page i.e. every 5 seconds, i just want to refresh it ONLY on server change just like desktop applications do. The problem is that refreshing evry n seconds has to much impact on my web server. The refresh action should be taken only when something
6
4781
by: Peter | last post by:
I have a APS.NET 3.5 webpage which calls a web service. What I need is to update this page automatically when a value changes in the webservice, does anyone have an example? Thank You Peter
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10613
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10368
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6876
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3846
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.