如果所有子节被勾选,加载数据自动显示勾选,我这样写怎么没被勾选?
Dim cc As Boolean = True For Each nd In trv.AllNodes
If nd.Checked = False Then cc = False Exit For End If Next If cc = True Then trv.Nodes("加载数据").Checked = True End If