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. Visual Basic
  4. Delete a node with double-clicking on it

Delete a node with double-clicking on it

Scheduled Pinned Locked Moved Visual Basic
question
6 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.
  • M Offline
    M Offline
    Milad Biroonvand
    wrote on last edited by
    #1

    How can I when double click on a node, I can edit it? I mean the node is a treeview. Thank you before answering. I am waiting for your answer.

    C M L 3 Replies Last reply
    0
    • M Milad Biroonvand

      How can I when double click on a node, I can edit it? I mean the node is a treeview. Thank you before answering. I am waiting for your answer.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Handle the double click event, it will presumably be passed the node, so delete it from the Items collection in there.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      1 Reply Last reply
      0
      • M Milad Biroonvand

        How can I when double click on a node, I can edit it? I mean the node is a treeview. Thank you before answering. I am waiting for your answer.

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

        Handle the double click event on the treeview use hittest to see if there is a node under the click Get the node from the hittest get the parent node from the node get confirmation from the user delete the node from the parents node collection

        M 1 Reply Last reply
        0
        • M Mycroft Holmes

          Handle the double click event on the treeview use hittest to see if there is a node under the click Get the node from the hittest get the parent node from the node get confirmation from the user delete the node from the parents node collection

          M Offline
          M Offline
          Milad Biroonvand
          wrote on last edited by
          #4

          Dear Friends Thank you very much gave the answer Especially Christian Graus and Mycroft Holmes. Code is very good. I hope you succeed

          M 1 Reply Last reply
          0
          • M Milad Biroonvand

            Dear Friends Thank you very much gave the answer Especially Christian Graus and Mycroft Holmes. Code is very good. I hope you succeed

            M Offline
            M Offline
            Milad Biroonvand
            wrote on last edited by
            #5

            You want an example,Or a project for me to upload in this field. thanks!

            1 Reply Last reply
            0
            • M Milad Biroonvand

              How can I when double click on a node, I can edit it? I mean the node is a treeview. Thank you before answering. I am waiting for your answer.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              You want to edit the label or delete the node itself ? If you want to enable automatic label edit, try:

              TreeView1.LabelEdit = true;

              If you want to delete the node, try Mycroft Holmes' post.

              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