Hi Mike,
You could do so by handling the TreeViewAdv''s MouseUp event as shown below :
private void treeViewAdv1_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
{
TreeNodeAdv node = this.treeViewAdv1.SelectedNode;
Point imgpt = new Point (node.TextAndImageBounds.X, node.TextAndImageBounds.Y);
Size imgSize = new Size(this.imageList1.ImageSize.Width, this.imageList1.ImageSize.Height);
Rectangle imgrec = new Rectangle(imgpt, imgSize);
Point clickpt = new Point(e.X, e.Y);
if (imgrec.Contains(clickpt)== true)
{
Console.WriteLine("Clicked on " + node.Text + "''s left image");
}
}
I have modified the
TreeViewAdvImageOverlayingDemo sample accordingly and have attached it here. Please refer to it and let me know if this works for you.
Regards,
Guru Patwal
Syncfusion, Inc.