If e.Node.Level = 1 Then e.Form.DropDownBox.Value = e.Node.Text Dim tr As WinForm.TreeView Dim pd As WinForm.TreeNode tr = Forms("窗口1").Controls("TreeView1") pd = tr.SelectedNode.ParentNode Dim txt As String = e.Form.DropDownBox.name txt = txt.Remove(txt.Length - 2 , 1) e.Form.Controls(txt).text = pd.Text e.Form.DropDownBox.CloseDropdown() End If 此主题相关图片如下:3 (2).png