You were exactly correct, I was using mousedown. I see now other contextmenus
appear on mouse up. So I changed that.
I want the context menu to appear when they rightclick on the control.
I don't understand the following.
"If you want the context menu to appear when you right click a main menu
option."
Well, maybe I do. Are you saying I could have one context menu when he clicks
the main menu and a different on fro clicking other places?
==========
I hate to include too much code because it makes the download long. But here
is a start. Never gets here. But in the IDE if I select mnuTopRuler and Click
it goes here so I'd guess that the definition is OK.
Public Sub mnuTopRuler_Click(ByVal eventSender As System.Object, ByVal
eventArgs As System.EventArgs) Handles mnuTopRuler.Click
mnuTopRuler.Checked = Not mnuTopRuler.Checked
picTopRuler.Visible = mnuTopRuler.Checked
SetAllGuideTops()
End Sub
in usercontrol New I have
RichTextBox1.ContextMenu = RePopupMenu
I also have (which seems to work)
Private Sub RichTextControl_MouseUp(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseUp
If e.Button = MouseButtons.Right Then RichTextBox1.ContextMenu.Show(Me,
New Drawing.Point(e.X, e.Y))
End Sub
Thanks for the help
Tr************@REMOVEaol.com