I assume you're talking about
System.Windows.Forms
, but your should always indicate the library you use: WPF,
ASP.NET
, so don't blame me if I'm answering a wrong question. Was that so difficult to read Microsoft documentation? You will have to read it anyway, see below.
There are two sets of images for
System.Windows.Forms
; see properties
ImageList
, and
StateImageList
. These image lists represent a whole set or small images 16x16 to be shown at each note. You better always use all of them for all nodes or always one of them, but not modify your choice (don't allow the situation when you sometime show only normal image, another time both images). The images are selected during run-time using special indexing. See code samples here:
http://msdn.microsoft.com/en-us/library/system.windows.forms.treeview.imagelist.aspx[
^], and here
http://msdn.microsoft.com/en-us/library/system.windows.forms.treeview.stateimagelist.aspx[
^].
See documentation on
TreeView
class for more detail:
http://msdn.microsoft.com/en-us/library/system.windows.forms.treeview.aspx[
^].
—SA