2013-02-12 186 views
0

我想在用戶選擇節點後向我的TreeView添加一個事件。treeview節點事件

For i = 0 To Informacion.Count - 1 Step +1 
     arreglosplit = Informacion(i) 

     Select Case arreglosplit(3) 

      Case "ab" 
       Dim nn As TreeNode = New TreeNode(arreglosplit(5).ToString) 

       n0.Nodes.Add(nn) 
      Case "bc" 
       Dim nn As TreeNode = New TreeNode(arreglosplit(5).ToString) 
       n1.Nodes.Add(nn) 

      Case "cd" 
       Dim nn As TreeNode = New TreeNode(arreglosplit(5).ToString) 
       n2.Nodes.Add(nn) 

      Case "de" 
       Dim nn As TreeNode = New TreeNode(arreglosplit(5).ToString) 
       n3.Nodes.Add(nn) 

如何添加事件後選擇將文本設置爲TextBox

回答