Articles in this section
Category / Section

How to disable the checkbox or the option button of the TreeNodeAdv in WinForms TreeViewAdv?

1 min read

Disable the checkbox

The user could disable the checkbox or the option button of the respective node and still the user can select and deselect the node by setting the EnabledButtons property to false of the respective treeNodeAdv as given below:

C#

private void button1_Click(object sender, System.EventArgs e)
{
   TreeNodeAdv node=this.treeViewAdv1.SelectedNode;
   node.EnabledButtons=false;
}

VB

Private Sub button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
   Dim node As TreeNodeAdv=Me.treeViewAdv1.SelectedNode
   node.EnabledButtons=False
End Sub

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied