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. Cut, Copy Paste TreeNodes

Cut, Copy Paste TreeNodes

Scheduled Pinned Locked Moved C#
csharptutorialquestion
3 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.
  • R Offline
    R Offline
    Rafone
    wrote on last edited by
    #1

    Hello Coders; Updating a VB.Net 2003 to C#.Net 2008 I found that in a treeview they were using Send.Key ^C to cut, ^V to paste etc the nodes. I have tried to implement the same in C# 2008 and its not working so I have been scouring the net for an example of how to Cut, Copy and paste TreeNodes and haven't found any useful info. Can someone point me in the right direction? tia rafone

    Statistics are like bikini's... What they reveal is astonishing ... But what they hide is vital ...

    M 1 Reply Last reply
    0
    • R Rafone

      Hello Coders; Updating a VB.Net 2003 to C#.Net 2008 I found that in a treeview they were using Send.Key ^C to cut, ^V to paste etc the nodes. I have tried to implement the same in C# 2008 and its not working so I have been scouring the net for an example of how to Cut, Copy and paste TreeNodes and haven't found any useful info. Can someone point me in the right direction? tia rafone

      Statistics are like bikini's... What they reveal is astonishing ... But what they hide is vital ...

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Rafone wrote:

      ^C to cut, ^V

      yep, that's VB for you. Instead of implementing a context menu they use sendkey - probably left over from a VB6 implementation. Use a context menu on the treeview Cut - copy node to a holding variable and delete from the tree Copy - sames as cut without the delete Paste - copy the node from the holding variable to the selectred node

      Never underestimate the power of human stupidity RAH

      R 1 Reply Last reply
      0
      • M Mycroft Holmes

        Rafone wrote:

        ^C to cut, ^V

        yep, that's VB for you. Instead of implementing a context menu they use sendkey - probably left over from a VB6 implementation. Use a context menu on the treeview Cut - copy node to a holding variable and delete from the tree Copy - sames as cut without the delete Paste - copy the node from the holding variable to the selectred node

        Never underestimate the power of human stupidity RAH

        R Offline
        R Offline
        Rafone
        wrote on last edited by
        #3

        they used send.key from a context menu. The original app was written in VB.Net using VS2003. In fact after upgrading the app to VS 2008 the cut copy paste of tree nodes works great, I just can't get these methods to work in C# VS2008. rafone

        Statistics are like bikini's... What they reveal is astonishing ... But what they hide is vital ...

        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