Solved Ordering when loop through all the controls on a form

I remember now the order is based on the z-order. Which has to do with where the code is in position to other controls. If you have controls that are stacked then the lower level needs to be rendered first and will have a lower z-order. You can test this yourself by placing a few controls on a form. Loop the forms collection. Play with the move forward, move backward and you will change the order in the control's collection.
 

Users who are viewing this thread

Back
Top Bottom