If TreeView1.Nodes(index).Selected = True Then MsgBox TreeView1.Nodes(index).Text & " 被选中." Else MsgBox "未选" End If