|
-
Jan 11th, 2009, 01:58 PM
#1
Thread Starter
Lively Member
[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.
-
Jan 11th, 2009, 03:07 PM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|