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" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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)
>
>
>
|