Hey everyone, I need some help. I have an index of standard VB image controls on a form. The amount of indexes of the control is unknown, as they are added dynamically at different counts at different times.

I need help with creating a function that I can call to create a sort of pretend z-level. See, each image will have a different left and top value. I need to position the controls so, for example, the one with the farthest TOP value will be on top, and the one shortest with be on the bottom.

I understand how to use the .ZOrder method, but I'm not sure how I can use it to create this effect. I hope I explained this right, if not ask me and I'll try to be more detailed.

Thanks greatly to anyone who replies.

- Evan Sims