Private Sub aTree_BeforeCheck(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeViewCancelEventArgs) Handles aTree.BeforeCheck Dim a As TreeNode a = aTree.Nodes(0).Nodes(1) a = e.Node If e.Node.ForeColor = Color.Gray Then e.Cancel = True End If End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)