Context menu on scrollbars

Nov 18, 2010 at 7:49 PM

I am able to change the context menu of Scintilla to my custom ContextMenuStrip, but when right-clicking the scrollbars, the default context menu pops up. How can I avoid this or have it show my ContextMenuStrip?

Thanks.

Jan 9, 2012 at 7:04 PM

Hi,

Call this method: 

Me.Scintilla1.NativeInterface.UsePopUp(False)

This will disable the copy/paste right-click. It will allow you to display the contextmenustrip menu and the right-click menu on the scroll bar will be related to scroll bar.

see screenshot of scroll bar context menu here: http://imageshack.us/photo/my-images/705/sshot1wz.png/