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. How to make a specific tree node unclickable in vb.net 2005

How to make a specific tree node unclickable in vb.net 2005

Scheduled Pinned Locked Moved Visual Basic
csharpdata-structurestutorialquestion
5 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.
  • A Offline
    A Offline
    Andraw Tang
    wrote on last edited by
    #1

    Hi, dear all, I have a treeView control in MDIcontainer vb project. In some reason, in specific case, I need to disable some of the tree node (make is gray and unclickable) based on user input. I didn't have checkbox in tree node. Is it possible to do it? Thanks!

    D 1 Reply Last reply
    0
    • A Andraw Tang

      Hi, dear all, I have a treeView control in MDIcontainer vb project. In some reason, in specific case, I need to disable some of the tree node (make is gray and unclickable) based on user input. I didn't have checkbox in tree node. Is it possible to do it? Thanks!

      D Offline
      D Offline
      ddecoy
      wrote on last edited by
      #2

      Clearing all child nodes makes it unclickable, you could remove the child nodes from the node you want to disable and set the backgroundColor property to gray. When you enable the node again you can set the childnodes again and remove the gray color. But this is probably not the best solution....

      modified on Friday, August 13, 2010 8:39 AM

      A 1 Reply Last reply
      0
      • D ddecoy

        Clearing all child nodes makes it unclickable, you could remove the child nodes from the node you want to disable and set the backgroundColor property to gray. When you enable the node again you can set the childnodes again and remove the gray color. But this is probably not the best solution....

        modified on Friday, August 13, 2010 8:39 AM

        A Offline
        A Offline
        Andraw Tang
        wrote on last edited by
        #3

        Thanks. Can I hide a node?

        D 1 Reply Last reply
        0
        • A Andraw Tang

          Thanks. Can I hide a node?

          D Offline
          D Offline
          ddecoy
          wrote on last edited by
          #4

          If you write the hide method yourself. Not with the 2.0 Treeview object...

          A 1 Reply Last reply
          0
          • D ddecoy

            If you write the hide method yourself. Not with the 2.0 Treeview object...

            A Offline
            A Offline
            Andraw Tang
            wrote on last edited by
            #5

            Thanks!

            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