[RESOLVED] [2008] Disable menu popup in textbox upon right click
I have a textbox on my form and I am showing a contextmenustrip when the user right clicks on it. That all works but the only problem is the copy,paste,cut etc menu is appearing above it. How can I disable the copy,paste and cut menu from appearing?
Thanks in advance.
Re: [2008] Disable menu popup in textbox upon right click
It shouldn't.
How are you showing the ContextMenuStrip?
My only guess is that you handle the right-click event of the TextBox and use the Load or Show or whatever method of the ContextMenuStrip to show it at the mousecursor location. This is not how it should be done!
All you need to do is set the ContextMenuStrip property of the Textbox to your ContextMenuStrip. You don't need to handle any right-clicks at all, and if you use this method, the standard contextmenu will automatically stop showing.