Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

locking down nodes on a treeview

Status
Not open for further replies.

cjac

Programmer
Dec 8, 2003
93
GB
Anyone know if it's possible to lock nodes on a treeview to prevent the user from changing the node text?

Cheers,
cjac
 
Set the Treeview's LabelEdit property to 1. As long as you don't invoke the StartLabelEdit method, that should do it.
 
Hi
Try this:
Code:
Private Sub TreeView_BeforeLabelEdit(Cancel As Integer)
    Cancel = True
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top