Hi Carl,
Node''s background colors can be controlled by the InactiveSelectedNodeBackground and the InactiveSelectedNodeForeColor properties of the TreeViewAdv control.
Code:
this.treeViewAdv1.HideSelection = false;
private void treeViewAdv1_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
{
if(e.Button == MouseButtons.Right)
{
Point p = this.treeViewAdv1.PointToClient(Control.MousePosition);
TreeNodeAdv node = this.treeViewAdv1.PointToNode(p);
this.treeViewAdv1.SelectedNode = node;
MessageBox.Show("Rightclicked on " + node.Text);
}
}
Please take a look at the attached sample and let me know if this helps you.
Thanks for your continued interest in Syncfusion Products.
Regards,
Deepa.T.S
NodeBackground.zip