Results 1 to 2 of 2

Thread: [RESOLVED] [2008] Disable menu popup in textbox upon right click

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2007
    Posts
    70

    Resolved [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.

  2. #2
    PowerPoster
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,070

    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
  •  



Click Here to Expand Forum to Full Width