Drag a "ContextMenu" control onto your form in the designer, and edit it
like you would a menu (add items, etc). Then in your form, you can show it
like this:
Private Sub Form1_MouseUp(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseUp
If e.Button = MouseButtons.Right Then
ContextMenu1.Show(Me, New Point(e.X, e.Y))
End If
End Sub
"Randy" <an*******@discussions.microsoft.com> wrote in message
news:09****************************@phx.gbl...
I am trying to right click on a form and have a custom
popup menu display. Does anyone know how to do this in
vb.net.
Thanks!