Dim trv1 As WinForm.TreeView = e.Form.Controls("TreeView1") Dim trv2 As WinForm.TreeView = e.Form.Controls("TreeView2") trv1.BuildTree("授权","分组|权限")
Dim cmd As new SQLCommand cmd.ConnectionName = "user" cmd.CommandText = "select * from {users}" Dim dt As DataTable = cmd.ExecuteReader trv2.BuildTree(dt,"Group|Name")