Visual Basic Reference

Control array element 'item' doesn't exist (Error 340)

See Also

You used an invalid index value to refer to an element in a control array. This error has the following cause and solution:

  • No control with the index value you referred to is part of the existing control array.

    Change the Index property setting for one of the existing elements to the value you referred to. Or use the Load statement to add a control to the array with an index equal to the value and then refer to the index value again.