Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Problem with RichText Box(Right Click Cut/Copy/Paste/SelectAll)...

Problem with RichText Box(Right Click Cut/Copy/Paste/SelectAll)...

Scheduled Pinned Locked Moved C#
helptutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    spalanivel
    wrote on last edited by
    #1

    Hi, How to get the menu like Cut,Copy,Paste,SelectAll in richTextBox. Any idea? Thanks, Subbu

    L D 2 Replies Last reply
    0
    • S spalanivel

      Hi, How to get the menu like Cut,Copy,Paste,SelectAll in richTextBox. Any idea? Thanks, Subbu

      L Offline
      L Offline
      Lyon Sun
      wrote on last edited by
      #2

      Combine the RichTextBox with a ContextMenu control, and do the methods of Cut, Copy, etc. in ContextMenu control? :-D

      S 1 Reply Last reply
      0
      • L Lyon Sun

        Combine the RichTextBox with a ContextMenu control, and do the methods of Cut, Copy, etc. in ContextMenu control? :-D

        S Offline
        S Offline
        spalanivel
        wrote on last edited by
        #3

        Thanks for your prompt reply. Here my question suppose If I am having two RichTextBox and Shall I want to create two ContextMenu Control or I can use One and refer two Rich textbox. Please explain.

        L 1 Reply Last reply
        0
        • S spalanivel

          Hi, How to get the menu like Cut,Copy,Paste,SelectAll in richTextBox. Any idea? Thanks, Subbu

          D Offline
          D Offline
          dan sh
          wrote on last edited by
          #4

          There is a ContextMenu property for a RichTextBox. You can use that to add a context menu with whatever items you like.

          It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD

          1 Reply Last reply
          0
          • S spalanivel

            Thanks for your prompt reply. Here my question suppose If I am having two RichTextBox and Shall I want to create two ContextMenu Control or I can use One and refer two Rich textbox. Please explain.

            L Offline
            L Offline
            Lyon Sun
            wrote on last edited by
            #5

            As d@nish said below, that is 100% possible. You just have to set the ContextMenuStrip Property for those two of your RichTextBoxes, enjoying the coding time. :laugh:

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups