I cannot work out why I am getting the attached error, when trying to display images in a TreeView
I have set up the image list correctly, however when the code runs it leaves out part of the path.
Its got to be something silly
I have worked it out at last.
When you add the image the path is being created incorrectly in the designer
eg Wisej.Web.ImageListEntry imageListEntry1 = new Wisej.Web.ImageListEntry(“Images\\Blue.png”, “Blue”);
Wisej.Web.ImageListEntry imageListEntry1 = new Wisej.Web.ImageListEntry(“Images/Blue.png”, “Blue”);
The path is correct in the designer, it’s the rendering of the image path in the ImageList component that is broken. It’s #1737. If you assign the same ImageSource to the TreeNode it works well. If you replace the slash in the designer as a temp workaround it works but it won’t shoe the thumbnail in the designer properties.
Please login first to submit.