How to reverse the order of a dynamic control array
I need a solution for reversing the order of a dynamic control array. I have a picturebox array which is a container for five textbox arrays. Each array index is populated by one row of a database record. Problem is, the array ends up in reverse order. I guess an alternative would be to poulate it in reverse order, but I don't know how to do that either. Any help would be appreciated.
Re: How to reverse the order of a dynamic control array
If you know how many there will be in the array in advance, simply load it in reverse order...
Code:
Load txtWhatever(5)
' change txtWhatever(5) properties as needed (i.e., visible, enabled, ZOrder, etc)
' then later as needed
Load txtWhatever(4)
' etc