Expand|Select|Wrap|Line Numbers
- TextBox1.Text = treeListView1.SelectedNodes(0).SubItems(4).Text & ""
when I click on the second record child I get specified argument was out of range the valid values parmeter name: Index was out of range. Must be non-negative and less then the size of the collection.
Here is the simple code that dont work
Private Sub treeListView1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles treeListView1.Click
Expand|Select|Wrap|Line Numbers
- Try
- If treeListView1.SelectedNodes(0).SubItems(4).Text Is DBNull.Value Then
- TextBox1.Text = ""
- Else
- TextBox1.Text = treeListView1.SelectedNodes(0).SubItems(4).Text & ""
- End If
- Catch ex As Exception
- MsgBox(ex.Message)
- End Try
- End Sub
Thanks
Thank You