CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2000
    Location
    UK
    Posts
    122

    Urgent How can I disable user click on TreeView CheckBox???

    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.
    All code on this page is protected by an SEP field!!!

  2. #2
    Join Date
    Mar 2001
    Posts
    90

    Re: Urgent How can I disable user click on TreeView CheckBox???


    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured