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. Create tree view

Create tree view

Scheduled Pinned Locked Moved C#
csharpdockerdata-structures
3 Posts 3 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.
  • I Offline
    I Offline
    Indresh1210
    wrote on last edited by
    #1

    Hi This is Indresh I am new in C# I want to create a tree view of the form controls. With the each node I want to display a check box. By clicking on the check box I want to enable and disable the controls. Hierarchy should be like this Container form child form1 control1 control2 child form2 control1 control2 child form3 control1 control2 Sorry for bad english Tanks in advance

    C A 2 Replies Last reply
    0
    • I Indresh1210

      Hi This is Indresh I am new in C# I want to create a tree view of the form controls. With the each node I want to display a check box. By clicking on the check box I want to enable and disable the controls. Hierarchy should be like this Container form child form1 control1 control2 child form2 control1 control2 child form3 control1 control2 Sorry for bad english Tanks in advance

      C Offline
      C Offline
      Calla
      wrote on last edited by
      #2

      What is your queation? Which part of this are you having problems with?

      1 Reply Last reply
      0
      • I Indresh1210

        Hi This is Indresh I am new in C# I want to create a tree view of the form controls. With the each node I want to display a check box. By clicking on the check box I want to enable and disable the controls. Hierarchy should be like this Container form child form1 control1 control2 child form2 control1 control2 child form3 control1 control2 Sorry for bad english Tanks in advance

        A Offline
        A Offline
        AhmedMasum
        wrote on last edited by
        #3

        suppose your treeview name is treeview1. use treeview1.nodes.add(your desired form name); for child node : treeview1.nodes[index].nodes.add(your control name); from the treeview1 property true the value of checkbox property. handle the afterselect event and check whither the e.Node.Checked return true or false. Then take necessary action as you want

        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