Dim s As String = "" Dim trv As WinForm.TreeView = e.Form.Controls("TreeView1") For Each nd As WinForm.TreeNode In trv.AllNodes If nd.Checked Then s = s & "," & nd.Text End If Next e.Form.DropDownBox.Value = s.trim(",") e.Form.DropDownBox.CloseDropdown