G
Guest
For Each tn As TreeNode In TreeView1.SelectedNode.Nodes
*** If tn.ForeColor = Color.Blue Then ***
Does not like above line. Can you give the correct syntax ???
I = I + 1
End If
Next tn
Also in Treeview we have the after select as shown below
Private Sub TreeView1_AfterSelect(ByVal sender As System.Object,
ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles
TreeView1.AfterSelect
If TreeView1.Nodes.IndexOf(TreeView1.SelectedNode) = -1 Then
TreeView1.SelectedNode.ForeColor = Color.Blue
End If
End Sub
Do we have the same option in listview to turn certain lines a different color
and then going thru the collection to examine the lines that were changed ???
*** If tn.ForeColor = Color.Blue Then ***
Does not like above line. Can you give the correct syntax ???
I = I + 1
End If
Next tn
Also in Treeview we have the after select as shown below
Private Sub TreeView1_AfterSelect(ByVal sender As System.Object,
ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles
TreeView1.AfterSelect
If TreeView1.Nodes.IndexOf(TreeView1.SelectedNode) = -1 Then
TreeView1.SelectedNode.ForeColor = Color.Blue
End If
End Sub
Do we have the same option in listview to turn certain lines a different color
and then going thru the collection to examine the lines that were changed ???