PDA

Click to See Complete Forum and Search --> : Controls Collection


Ishamel
Jan 27th, 2000, 05:29 PM
Is it possible to order the collection of controls on a form.

For example, when using the following code, can I determine what order the control names will be displayed.


Dim objControl as Control

For Each objControl in myForm.Controls
MsgBox objControl.Name
Next


Any assistance would be greatly appreaciated.

------------------
Ishamel
KBurt59082@AOL.COM

Aaron Young
Jan 28th, 2000, 08:59 AM
Nope, but if you just want an Ordered List, Add the Names to a Listbox with the Sorted Property set to True.

------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
ajyoung@pressenter.com