[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Notifyicon Menu position

Posted on 2004-03-21
3
Medium Priority
?
710 Views
Last Modified: 2012-08-13
Hi Folks,

How do I position a context menu above the notify icon when I right click it?

This is what I have so far:   Not sure what to replace the xxx with?  (This is code i'm using elsewhere in the application)

Private Sub NotifyIcon1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseDown
    ContextMenu2.Show(xxx, New Point(e.X, e.Y))
End Sub

Thanks,
Paul
0
Comment
Question by:trancetopia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:trancetopia
ID: 10648337
Increasing points
0
 
LVL 4

Accepted Solution

by:
Nazdor earned 2000 total points
ID: 10687027
It looks like you want to popup the menu no matter what mouse button is clicked on the icon.

To get it to popup when the Right mouse is clicked (which is the normal method for context menus), then simply set the contextmenu propert of the trayicon, eg:

        Me.NotifyIcon1.ContextMenu = Me.ContextMenu2

This can be done in the designer (properties for the NotifyIcon)

At least this might get you going for the time being.
0
 

Author Comment

by:trancetopia
ID: 10692265
I knew the answer would be easy.  Thanks Nazdor.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question