Re: Enable right click in VB2005 xpress



Roman <Hef@xxxxxxxxxxx>'s wild thoughts were released on
Thu, 7 Dec 2006 22:09:01 -0800 bearing the following fruit:

I am trying to get a right click available for a NotifyIcon. I have searched
the forums and tried -

This is a VB6 groups, you need one of the 'dotnet' groups.

J

Private Sub NotifyIcon1_MouseUp(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseUp
End Sub

modified it to

Private Sub NotifyIcon1_MouseUp(ByVal Button As Integer, ByVal Shift As
Integer, ByVal X As Single, ByVal Y As Single)

If (Button And vbLeftButton) = vbLeftButton Then
Debug.Print("Left Button")
End If
If (Button And vbRightButton) = vbRightButton Then
Debug.Print("Right Button")

End If

It comes out with vbLeftButton or"right" not declared, where or how, if
possible can I do this ?

Complete newbie... Own VB.net & VB express ( like express better ) trying to
get a grasp and move into C++ for FS9 gauge programming.

Thanks in advance.
Roman



Jan Hyde (VB MVP)

--
"I'll have to change your grade" Tom's teacher remarked
(Kegel Archives)

.


Loading