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. Implementing cut, copy, paste, undo, select all

Implementing cut, copy, paste, undo, select all

Scheduled Pinned Locked Moved C#
questionhelp
2 Posts 2 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.
  • M Offline
    M Offline
    monrobot13
    wrote on last edited by
    #1

    Here's the question: textboxes themseleves already handle all these events so if I want to make a menu item that is going to do the same thing how do I get it to simply use the functionality that's already built into the textbox? If I put a menu on my form and add and edit menu that has Cut, Copy, Paste, etc and the default shortcut keys Ctrl X, Ctrl C, etc then the textboxes no longer have that functionality. So the question is how do I get my menu commands to simply use the textboxes already built-in functionality? Thanks for the help. - Aaron

    P 1 Reply Last reply
    0
    • M monrobot13

      Here's the question: textboxes themseleves already handle all these events so if I want to make a menu item that is going to do the same thing how do I get it to simply use the functionality that's already built into the textbox? If I put a menu on my form and add and edit menu that has Cut, Copy, Paste, etc and the default shortcut keys Ctrl X, Ctrl C, etc then the textboxes no longer have that functionality. So the question is how do I get my menu commands to simply use the textboxes already built-in functionality? Thanks for the help. - Aaron

      P Offline
      P Offline
      Polis Pilavas
      wrote on last edited by
      #2

      monrobot13 wrote:

      If I put a menu on my form and add and edit menu that has Cut, Copy, Paste, etc and the default shortcut keys Ctrl X, Ctrl C, etc then the textboxes no longer have that functionality

      My guess would be that you are overriding the default textbox menu with your own, so in essence this is why you're disabling the default behavior. So if this is the case, I guess you would have to re-implement this kind of behaviour in your new menu. I don't know whether you can merge the default functionality with your own. But then again, why on earth would you want to do that?? Correct me if I am wrong, but it's like re-inventing the wheel... isn't it? Regards, Polis Can you practice what you teach?

      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