Hi Rich,
We do not have an "Form.Icon" like property associated with the TreeNodeAdv, but you could use the following approach if you wish to directly assign image files to the TreeNodeAdvs :
Bitmap bmp1 = new Bitmap("..\\..\\shape9.ico");
Bitmap bmp2 = new Bitmap("..\\..\\shape10.ico");
Bitmap bmp3 = new Bitmap("..\\..\\shape11.ico");
Bitmap bmp4 = new Bitmap("..\\..\\shape12.ico");
Bitmap bmp5 = new Bitmap("..\\..\\shape13.ico");
this.imageList1.Images.Add(bmp1);
this.imageList1.Images.Add(bmp2);
this.imageList1.Images.Add(bmp3);
this.imageList1.Images.Add(bmp4);
this.imageList1.Images.Add(bmp5);
int count=0;
foreach (TreeNodeAdv node in this.treeViewAdv1.Nodes)
{
node.LeftImageIndices = new int[] {count};
node.RightImageIndices = new int[] {count};
count++;
}
Please refer to the
test sample attached here and let me know if this meets your requirements. Thanks for your interest in Syncfusion products.
Regards,
Guru Patwal
Syncfusion, Inc.