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. Edit TreeNode text ???

Edit TreeNode text ???

Scheduled Pinned Locked Moved C#
csharpdata-structureshelptutorialquestion
4 Posts 4 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.
  • G Offline
    G Offline
    gyokusei
    wrote on last edited by
    #1

    In the tree of the WindowsExplorer, when we click on a node and choose 'rename', the text of that node, maybe, appear in a textbox and we can change that text. Can u show me how to do that in C#? Please help me! Thank you in-advanced!

    P T N 3 Replies Last reply
    0
    • G gyokusei

      In the tree of the WindowsExplorer, when we click on a node and choose 'rename', the text of that node, maybe, appear in a textbox and we can change that text. Can u show me how to do that in C#? Please help me! Thank you in-advanced!

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

      gyokusei wrote: Can u show me how to do that in C#? So, what you are saying here is that you want to simulate this effect on a listview control (or similar controls) into your application (WinForms I suppose)? Or you want access the shell? Regards, Polis Can you practice what you teach?

      1 Reply Last reply
      0
      • G gyokusei

        In the tree of the WindowsExplorer, when we click on a node and choose 'rename', the text of that node, maybe, appear in a textbox and we can change that text. Can u show me how to do that in C#? Please help me! Thank you in-advanced!

        T Offline
        T Offline
        tommazzo
        wrote on last edited by
        #3

        Just set the LabelEdit property of your TreeView to true and you'll be able to edit it by clicking on it. If you want to trigger an Edit manually use TreeView.BeginLabelEdit().

        1 Reply Last reply
        0
        • G gyokusei

          In the tree of the WindowsExplorer, when we click on a node and choose 'rename', the text of that node, maybe, appear in a textbox and we can change that text. Can u show me how to do that in C#? Please help me! Thank you in-advanced!

          N Offline
          N Offline
          NassosReyzidis
          wrote on last edited by
          #4

          this.treeTemplates.SelectedNode.BeginEdit(); GanDad

          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