Not enough room to allocate control array 'item'

Error 342


There isn't enough memory to create all the elements of a control array.  If a control array has discontiguous indexes, such as 0, 2, and 4, Visual Basic will use more memory than if the indexes were contiguous (0, 1, 2).  Check either how you've assigned indexes at design time or how your program assigns indexes as it creates new control array elements, and make them contiguous.