Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The specified index is less than -1 or greater than 14.
If the parent TreeView has check boxes enabled, the is ignored and the node will display the first or second image in the StateImageList set on the parent TreeView to indicate an unchecked or checked state, respectively. Toggling the Checked property does not affect the value of the .
The returns -1 when not set. The StateImageKey and properties are mutually exclusive, meaning if one is set, the other is ignored. If you set the StateImageKey property, the property is automatically set to -1. Alternatively, if you set , StateImageKey is automatically set to an empty string ("").
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2