If I override WndProc in a TextBox class and handle WM_CONTEXTMENU, with just return; to do nothing, I don't get the default context menu (tested on Windows 10 22H2)
Disable TextBox ContextManu
Sani Love
160
Reputation points
Hello experts I tried both:TextBox.ContextMenu = New ContextMenu TextBox.ContextMenuStrip = New ContextMenuStrip And there's still an issue: right click and drag the mouse out of the TextBox and now release the mouse button, the context manu is shown at that point! Any solution to completely disable it? Thanks.