How to disable the checkbox or the option button of the TreeNodeAdv in WinForms TreeViewAdv?
In WinForms TreeViewAdv , 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.Net
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