Hi
First add the ContextMenu on the form and set RichTextBox.ContextMenu
property.
Then write following code.
Private Sub myRichTextBox_MouseDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles myRichTextBox.MouseDown
If e.Button = MouseButtons.Right Then
myContextMenu.Show(myRichTextBox, New Point(e.X, e.Y))
End If
End Sub
Hopes this will help.
Sakharam Phapale
"Cc" <ko*****@singnet.com.sg> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
how do I show context menu on richtextbox?
I try select the contextmenu under properties , but still no use do I miss
something. (VS 2005)