?
Solved

Notifyicon Menu position

Posted on 2004-03-21
3
Medium Priority
?
705 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

Quick Cloud Training

Looking for some quick training on the cloud in 2 hours or less? Check out these how-to guides in AWS, Linux, OpenStack, Azure, and more!

Question has a verified solution.

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

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
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 tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

800 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