View Single Post
 
Old 06-05-2017, 02:13 PM
passel's Avatar
passel passel is offline
Sinecure Expert

Super Moderator
* Guru *
 
Join Date: Jun 2003
Location: Upstate New York, usa
Posts: 8,024
Default

I don't know specifically, but I've found that the order the controls are in the forms collection depend on the order they are written in the .frm file. Since the .frm file is updated with code quite often, so re-written quite often, the order of things in the file may change.
For instance, it seems quite often that I add controls to the form and save the project, that the controls are written to the file in the reverse order that I added them, the first time. It may stay that way for a while, but further edits to the form do seem to sometimes cause the order in the .frm file to change.
VB doen't care about the order that controls are added to the collection and you shouldn't rely on the controls being in a particular order either.
__________________
There Is An Island Of Opportunity In The Middle of Every Difficulty.
Miss That, Though, And You're Pretty Much Doomed.
Reply With Quote