473,756 Members | 5,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

notify icon and context menu not responding

Hi there,

I have an app whose structure is as follows: a module calls a custom
application context containing a notify icon and associated context menu,
which in turn acts upon an instance of another class, I'll call Class1 (i.e.
accesses its startup, shutdown, print reports methods).

Basically, Class1 manages communication between two other classes: one is a
class that listens for a socket connection from another application and the
other is a windows form that is shown to the user when data is received
through the socket connection. There's more to it than that really, but
that's the high-level version.

Here's the problem:

After the application runs for a while, the notify icon in the system tray
stops responding reliably. Normally, when you right click the icon, you get
a context menu with three items. After several minutes or sometimes after
the workstation is locked and unlocked, when you right-click on the notify
icon, the context menu doesn't come up- instead I get a 'shadow' of the
outline of the context menu but I'm not able to interact with it.

I've used this architecture before in other applications and never run into
this problem. However this time I'm using .NET framework 2.0 and wondering
if there's something I'm missing.

Has anyone else seen this 'shadowed' or outline behavior in a
notifyicon/contextmenustri p setup? I can post code if that would be helpful.

Thanks so much!
Mike
Jul 5 '06 #1
0 1395

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

Similar topics

7
10323
by: Lalit | last post by:
Hi Friends, I have developed a Windows service. Now i need icon for this service in systray and context menu fo this icon. Can i do this? With regards, Lalit
0
1562
by: Alireza Haghshenass | last post by:
Dear All, I am facing a problem which I could not solve. I am writing an application which uses a notify icon and a context menu bound to it to show modal dialog forms. When these forms is shown there is no problem but while I am closing any of them which is shown in modal form throw an exception which is described below : Message : External component has thrown an exception. StackTrace : at...
1
2681
by: chinimimita.hernandez | last post by:
Does anyone know how windows service work with notifyicon and contextmenu? I was able to run the windows service with notifyicon part but when I inserted the contextmenu command it didn't work. When I read the MSDN articles about the windows service it says that if my WS needs to be interactive I need to access the unmanaged windows API. but I honestly dont have idea on how I will inject that part to my code. Can anyone give me sample on...
4
1283
by: Andre Nogueira | last post by:
Hi there. I have created a Windows Control Library project within my solution (using VB.Net 2003) and created a control which inherits the MenuItem class but takes cares of the drawing of the menu. So far so good. It takes care of all the drawing of the menuitems if they are part of the form's mainmenu or if they are part of a context menu of an item of the form (Listview, etc). However, if the context menu is assigned to the Notify Icon...
0
1421
by: ld | last post by:
Hi, I have a Windows service that creates a tray icon. the tray icon gets created no problem however I cannot get any of the events on this icon to be fired in the Service. So if you double click on the icon nothing happens. Also I am interested in having a context menu associated to this icon. Is this impossible to do because I am dealing with a service? or is there a workaround?
3
2027
by: Cylix | last post by:
I am going to make an application in monitor and do something on time. A part of it is an Notify icon(System Tray Icon), Which project type can I be used for Just showing the notify icon without any form? What I mean is something like When you minimize the MSN Messager as a tray icon. I have tried a service project and application project, all these seems cannot meet the goal.
1
1939
by: liubin | last post by:
I'm trying to create a context menu that pops up upon right clicking the notify icon of my application. The menu works great with plain text... no problem. My problem is that I want to add some sparkle by displaying a different highlighting scheme for the individual mouse over events and an icon on each item in the menu. I can do this, and have successfully done this in a regular main menu and a context menu that is set to an item on a...
1
1629
by: namrataa | last post by:
i have a notify icon for our media player developed in wpf. included files are notify.cs,notify.resx,notify.designer.cs. i have also added a class file called app.cs . now the problem is how do u attach an event handler to the context menu.i want to add event handlers to hide and show the media player. The notify icon appears in the tray when i run the application but does not disappear wen it is stopped.
0
1007
by: namrataa | last post by:
i have the following code for my notify.cs file using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Linq; using System.Text; namespace startProjmedia
0
9462
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10046
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...
0
9886
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9857
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
8723
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...
1
7259
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3369
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2677
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.