I found this in another post. "If you are using OutlookExpress style then you can't apply an image to a node. The node displays using Columns. So you would have to put the image into a cell of the node."
What can I do to allow images with text without making a separate column? I'm trying to create a file explorer like app which displays a tree structure with columns ( e.g. file type, size, date created, etc. ) and also have folder and file icons displayed next to the file or directory name.
This is a MUST requirement, so I need to find a solution.
Please help.
Jason
cell.Appearance.Image = myImage
Hi sorry to drag up an old question, but I have not been able to successfully use a 32x32 image here. It simply resizes to 16x16.
Also using tree.Override.ImageSize = Size(32, 32) does not work.
Any ideas?
Thanks, Tom
Hello Tom,
You should resize the cell in order to be able to view such image in it:
ultraTree1.ColumnSettings.ColumnSets[0].Columns[0].CellAppearance.Image = SystemIcons.Asterisk.ToBitmap(); ultraTree1.ColumnSettings.ColumnSets[0].Columns[0].LayoutInfo.MinimumCellSize = new Size(32, 32);
Is this what you are after?
Spot on, thank you very much. I actually discovered this almost by accident late last night, this confirms the solution. The LayoutInfo is much underrated imho!
Thanks again, Tom