Can anyone help me because I want to disable the checkboxes in a treeview and at the same time be able to scroll through the treeview.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Create a new class and copy the code below
Compile your project and either drag and drop this new control from your toolbox or go to your designer and rename System.Windows.Forms.Treeview to MyTreeview.
Go to your vb Code and on BeforeCheck event say e.Cancel = true
Done!!!
If you need any help post your comment.