怎么得到TreeView中选中节点的路径
1个回答
展开全部
VB.NET code Private Sub TreeView1_AfterSelect(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles TreeView1.AfterSelect
If e.Node IsNot Nothing Then
Me.Label1.Text = e.Node.FullPath
End If
End Sub
If e.Node IsNot Nothing Then
Me.Label1.Text = e.Node.FullPath
End If
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询