TreeView StateImageList StateImageIndex
-
Is there a max value for treeNode.StateImageIndex? I have a stateImageList with 21 images. Any image above the 15th e.g. treeNode.StateImageIndex = 15, generates an ArgumentOutOfRangeException with message: InvalidArgument=Value of '15' is not valid for 'StateImageIndex' A max value isn't documented as far as I see. What am I missing? Thanks
-
Is there a max value for treeNode.StateImageIndex? I have a stateImageList with 21 images. Any image above the 15th e.g. treeNode.StateImageIndex = 15, generates an ArgumentOutOfRangeException with message: InvalidArgument=Value of '15' is not valid for 'StateImageIndex' A max value isn't documented as far as I see. What am I missing? Thanks
I see this behavior is documented for 3.0 but not in 2.0. http://msdn2.microsoft.com/en-us/library/system.windows.forms.treenode.stateimageindex.aspx[^] ArgumentOutOfRangeException - The specified index is less than -1 or greater than 14. Fair enough.