I want to enumerate through all of the controls on any given form and list their names in a listbox.

for example(obviously this doesn't work!)

For z = 0 to me.controls.count - 1
list1.additem me.controls(z).name
Next z

I am NOT talking about Control Arrays.

Thanks in advance.

C