N
Norton Who
Hi,
Could I please ask if anyone could help me solve this problem in
VS2003:
I'm trying to count all the nodes that have a Checked state however
this doesn't seem to be working for me.
So here is the code:
Dim prCount As Integer 'parent checked count
Dim chCount As Integer 'child checked count
Dim tn As New TreeNode
For Each tn In Me.TreeView_db.Nodes
If tn.Tag = "Column" Then
If tn.Checked = True Then
chCount = chCount + 1
End If
ElseIf tn.Tag = "Table" Then
If tn.Checked = True Then
prCount = prCount + 1
End If
End If
Next tn
This is not giving me the right count, actually it's giving me zero
always.
Thank You,
Norton Who
Could I please ask if anyone could help me solve this problem in
VS2003:
I'm trying to count all the nodes that have a Checked state however
this doesn't seem to be working for me.
So here is the code:
Dim prCount As Integer 'parent checked count
Dim chCount As Integer 'child checked count
Dim tn As New TreeNode
For Each tn In Me.TreeView_db.Nodes
If tn.Tag = "Column" Then
If tn.Checked = True Then
chCount = chCount + 1
End If
ElseIf tn.Tag = "Table" Then
If tn.Checked = True Then
prCount = prCount + 1
End If
End If
Next tn
This is not giving me the right count, actually it's giving me zero
always.
Thank You,
Norton Who