Geoff,
"Geoff Jones" <no********@email.com> schrieb:
If a node of a TreeView has had its ForeColor set to something different
than its default, is there an easy way to change it back without knowing
which node it was i.e. is there a command to reset all the nodes back to
the default color?
\\\
Private Sub RecurseNodes(ByVal col As TreeNodeCollection)
For Each tn As TreeNode In col
tn.ForeColor = ...
If tn.Nodes.Count > 0 Then
RecurseNodes(tn.Nodes)
End If
Next tn
End Sub
Private Sub Test()
RecurseNodes(Me.TreeView1.Nodes)
End Sub
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>