ContentMenuStrip Left Click Notify Icon

I would like the contentMenuStrip to appear when the user Left Clicks on the NotifyIcon, right above the NotifyIcon (Just as it would if user had right clicked)

I have a attatched a contentMenuStrip to a NotifyIcon which i would like activated on the Left click and not the usual right click.   I tryed disattaching ContentMenuStrip from the NotifyIcon and on the click action of the Notify Icon , I determin the Click Type (right or Left) and if Left,  I give the location (X,Y) i would like the ContentMenuStrip to appear.  

The first left click, the content Menu appears in the top left corner, but all subsequent times it appears where i markered the (x,y - approx where the notify icon is)  

I put the location code prior to displaying the contentmenu, but still the first left click it does not appear where i want it to...

Any Ideas? 2005
Who is Participating?
Wayne Taylor (webtubbs)Connect With a Mentor Commented:
If I use this code, it works fine....
    Private Sub NotifyIcon1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseClick
        If Not e.Button = Windows.Forms.MouseButtons.Left Then Exit Sub
        With My.Computer.Screen.WorkingArea
            ContextMenuStrip1.Show(.Width - ContextMenuStrip1.Width - 5, .Height)
        End With
    End Sub

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.