-
Hiyas,
A few things...
1. I want it so when you click a node it doesn't enable you to rename it, at all, under any circumstances, nada. =) How would I do this?
2. When you click a node, I want it so it gets the text of that node and gives it to you in a MsgBox. How would I do this?
I've only just started learning about TreeViews, and I'm finding it daunting. Any help would be greatly appreciated. =)
-Git
-
look on the property page of the treeview, there is option for this exact thing, its called "LABELEDIT" set it to TVWManual
-
As far as your second question goes, you can put the following code in the NodeClick event:
Code:
Private Sub TreeView1_NodeClick(ByVal Node As MSComctlLib.Node)
MsgBox Node.Text
End Sub