Hi,
I am creating an ASP.NET 2.0 web part that will be used in SharePoint in the Page Load event. I currently have the TreeView working with the following code:
TreeView1 = new TreeView();
TreeView1.ShowLines = true;
TreeView1.ShowExpandCollapse = true;
TreeView1.ImageSet = TreeViewImageSet.XPFileExplorer;
Controls.Add(TreeView1);
However, I would like to use custom images (i.e. SharePoint icons) for the Parent and Child nodes. Keeping in mind that I don't have an ASPX page or access to a Properties Window in the web part, could you please provide me with some sample C# code as to how to set the Parent and Child Nodes' icons?
Thanks,
William