Hi Ben,
Please refer to the attached sample that illustrates the above. Here the mouse cursor gets positioned appropriately when the buttons are clicked.
//Provides the coordinates of the top-left corner of a TreeNodeAdv in terms of screen coordinates.
private Point MousePointer(TreeNodeAdv node)
{
Point point = this.treeViewAdv1.PointToScreen(this.treeViewAdv1.NodeToPoint(node));
point = new Point (point.X+node.NodeX, point.Y);
return point;
}
//coding for the cursor position on a node when a button is clicked.
private void button1_Click(object sender, System.EventArgs e)
{
Cursor.Position = this.MousePointer (this.treeViewAdv1.Nodes[0]);
}
Let me know if this helps you.Thanks for your continued interest in Syncfusion Products.
Kind regards,
Deepa.T.S.
MousePosition.zip