imname
June 30th, 2008, 11:01 PM
How can I show ContextMenuStrip in RichTextBox when I highlight a word and right click the mouse?
The code below only show the ContextMenuStrip when I double click in the RichTextBox
Private Sub rtb_MouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles rtb.MouseDoubleClick
ContextMenuStrip1.Show(MousePosition, Right)
End Sub
Thanks
The code below only show the ContextMenuStrip when I double click in the RichTextBox
Private Sub rtb_MouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles rtb.MouseDoubleClick
ContextMenuStrip1.Show(MousePosition, Right)
End Sub
Thanks