Hi Peter,
Sorry for the delay in responding. I was able to reproduce the issue (RMouseDown property is set to null before the MouseUp event is triggered) and it has been fixed internally. Thanks for your suggestion about this issue.
As a workaround, you can use the following code in MouseUp event to get the node which is clicked by mouse rightbutton.
if(e.Button==MouseButtons.Right)
{
Point p=this.treeViewAdv1.PointToClient(Control.MousePosition);
TreeNodeAdv node=this.treeViewAdv1.PointToNode(p);
this.treeViewAdv1.SelectedNode=node;
this.popupMenu1.Show(this,p);
}
Please take a look at the attached sample and let me know if you have any questions.
Regards,
Vijay
TreeMouseUP.zip