From my understanding I can refer to specific items in a listBox via the index operators but it is not working. It builds and compiles but when the program reaches this part I get an error. My code is as follows:
this -> tbVol ->Text = Convert::ToString(this->lbData->Items);
the error i receive is this:
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in System.Windows.Forms.dll
Additional information: InvalidArgument=Value of '21' is not valid for 'index'.
ArgumentOutOfRangeException is thrown when a method is invoked and at least one of the arguments passed to the method is not null and does not contain a valid value.
Possibly you are using only one argument where there should be two: lbData [idc, index]
But I am not familiar with this topic so maybe I shouldn't be the one to reply.