robward
New member
Having gone from VB6 to Java to VB.Net, I have some fond memories of creating control arrays in VB6 that allowed me to set an index value on the control and if I copied and pasted, VB6 simply created a control with an incremented index. Lovely! When I learned Java it had to be done OOP compliant and very elegant it was too. Now that I have returned to the VB fold as VB.Net, I cannot replicate this very convenient concept. I have spent literally days searching the net, but to no avail. The closest I have come is to set up a Panel and place multiple ListBox in them and trap all the events associated with each ListBox, instantiate the object passed and read the value from the ListBox that cause the event.
However this does not allow automatic indexing of the ListBox out of the 7 source ListBox possibilities, nor, just as importantly, can I see how I can index data back into any one of the other 7 destination ListBox values?
In a nutshell, the problem is this, I have seven ListBox that I get 4 values from and feed into a parallel set of 7 ListBox and also into String arrays, how can I do this in the most efficient way without having, long lines of IF/THEN statements to transfer the data from one list box to its corresponding ListBox?
Is there an easy answer or is in OOP and VB.net somewhere?
Cheers.
However this does not allow automatic indexing of the ListBox out of the 7 source ListBox possibilities, nor, just as importantly, can I see how I can index data back into any one of the other 7 destination ListBox values?
In a nutshell, the problem is this, I have seven ListBox that I get 4 values from and feed into a parallel set of 7 ListBox and also into String arrays, how can I do this in the most efficient way without having, long lines of IF/THEN statements to transfer the data from one list box to its corresponding ListBox?
Is there an easy answer or is in OOP and VB.net somewhere?
Cheers.