473,563 Members | 2,556 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MenuItem.Select event ContextMenu/NotifyIcon Problem

ZH
Hi There,

I have an application that runs from the systray. When the user right
clicks on the icon it shows the user a list of of menu items. That works
without a problem.

The problem is that the only event I've been able to fire for a MenuItem is
the CLICK event. I 've been unable to get the [Select] or Popup events to
fire. I've tried adding handlers for the [Select] and Popup events, but
that didn't work. I've also tried using menuitems as individually declared
Friend withevents with the [Select] and Popup Events created, but that
didn't work either.

I can provide code if need be. Question is if anyone has been able to get
the [Select] event to fire for a MenuItem when using the notifyicon and
contextmenu controls together in a systray menu app?

Thx,

Zac
Nov 20 '05 #1
0 1325

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

Similar topics

4
5120
by: Norvin Laudon | last post by:
Hi, I have a context menu, which is used for each of 6 labels on my form. That is, right-clicking any of the labels will bring up the same context menu. Once the user clicks the menu, the clicked MenuItem fires an event: menuItem1_Click(object sender, System.EventArgs e) How can tell which of the 6 labels the menu is being clicked over?
1
2761
by: Ignacio X. Domínguez | last post by:
Hi everyone. Hope you can help me out on this one. I'm developing a Component which has a property ContextMenu. This component, when placed on a form with a working ContextMenu (events assigned to elements and proven to work with labels) displays an icon in the notification area by calling ShellNotifyIcon() (don't want to use NotifyIcon...
3
10973
by: Glen | last post by:
Can anyone tell me if there is a workable method to get the mouse cursor position on the screen or the NotifyIcon position? I need to display a context menu for the NotifyIcon when clicked and I'd like it to display based on the relative position of the tray icon or mouse pointer if possible (whichever method works). Any help would be much...
2
1359
by: Ilann | last post by:
I have a simple question about ContextMenu and MenuItem, when I attach a ContextMenu to a control in the designer and I right click during execution I can select options with arrow keys but when I use the show Method of a ContextMenu I cannot select an option in the menu by pressing arrow keys, how could I implement this? Thanks
4
3492
by: Claire | last post by:
Sorry Ive added this twice (sortof) but if I'd added an addendum to the first one then this would probably have been ignored. This problem affects a ContextMenu attached to a NotifyIcon object. I don't get the problem with context menus attached to list boxes etc. Ive also seen a noticeable slow down in speed when the menu attempts to hide...
6
1318
by: Eric Sabine | last post by:
Basically, the following code creates a menuItem array and tries to use it twice. In the following piece of code, only the line that appears second gets used. The first becomes ignored presumably when the second is run. Me.mnuFile.MenuItems.AddRange(myMenu) Me.ContextMenu1.MenuItems.AddRange(myMenu) Below I've included just enough code...
0
275
by: ZH | last post by:
Hi There, I have an application that runs from the systray. When the user right clicks on the icon it shows the user a list of of menu items. That works without a problem. The problem is that the only event I've been able to fire for a MenuItem is the CLICK event. I 've been unable to get the or Popup events to fire. I've tried...
9
2105
by: Sharon | last post by:
I have a Forms.ContextMenu with some Forms.MenuItem that has EventHandler for the Click event. The event handler function has the following signature: private void OnMenuItemClick(object sender, System.EventArgs e) I can not figure out how can the System.EventArgs e be helpful to me. Can I get from the System.EventArgs e the Point...
4
1430
by: Trevor Benedict R | last post by:
Hi, Does anybody have a workaround for this problem http://support.microsoft.com/kb/827043 What I am trying to achieve is to to display an Icon in the System Tray and on the right click event, I want to display a Menu with Icons. Thanks & Regards, Trevor Benedict
0
7658
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...
0
7579
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...
0
8101
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...
1
7631
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...
0
6238
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...
1
5479
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...
0
5204
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...
0
3615
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.