以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  [求助]如果多选目录树勾选的全部节点为空  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=110423)

--  作者:天一生水
--  发布时间:2017/12/2 16:44:00
--  [求助]如果多选目录树勾选的全部节点为空

这样写对不对?谢谢!

Dim tv As WinForm.TreeView = e.Form.Controls("TreeView1")
For Each nd As WinForm.TreeNode In tv.AllNodes
    If nd.Checked = False Then

        代码......

    End If
Next


--  作者:有点蓝
--  发布时间:2017/12/2 16:58:00
--  
Dim all as Boolean = true

Dim tv As WinForm.TreeView = e.Form.Controls("TreeView1")
For Each nd As WinForm.TreeNode In tv.AllNodes
    If nd.Checked Then

        all = false

exit for

    End If
Next

if all then

代码......

end if