开发者

C# treenode node text

I'm adding Nodes to TreeView dynamically. I'm just creating labels and add them to nodes. My treeView looks like that:

TreeView 1

-Node 1

  - Node 1.1

      -Node 1.1.1

         -Node 1.1.1.A

          -Node 1.1.1.B

      -Node 1.1.2

          -Node 1.1.2.A 

After click nodes, i want only do something if clicked node is: Node 1.1.1.A, Node 1.1.1B or Node 1.1.2.A. So i'm checking labels, but la开发者_如何学Pythonbel in nodes 1.1.1 and 1.1.2 are changing in while loop so how can i check it?


You could put something in the Tag property, like a bool, that specifies which ones should trigger something, and then when one is clicked check to see if it has it but it would help if you could clarify your question with more detail

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜