Click to See Complete Forum and Search --> : Urgent How can I disable user click on TreeView CheckBox???


jerry.gadd
April 10th, 2001, 12:27 PM
Hello,

Does any body know how to prevent the user from changing the Check State of a TreeView Node????
I am despirate!!!!!!!!!

Regards,
Jerry Gadd

Ratings are my only reason for living, so GIVE ME HIGH ONES, or have my death on your consience.

Vijooo
April 11th, 2001, 12:17 AM
Hi

Its very sinple.
Go to the NodeCheck event of the Tree View Control and paste the following code.
You can change to True or False accordingly

Private Sub TreeView1_NodeCheck(ByVal Node As MSComctlLib.Node)
If Node.Checked = True Then
Node.Checked = False
End If
End Sub


All the very best

Bye Bye Take Care
Vijooo