Hey guys,
Does anyone know an easier way to cycle through controls on a page without having to use recursion?
i.e. I want to set all my textboxes to look one way for one state, and another way for another. But I don't want to have to hardcode all the names
i.e.
TextBox1.BorderStyle = Inset
TextBox2.BorderStyle = Inset
etc.
What I want to do is just pass the page object to ONE sub and have it do the rest.
Just wondering if someone knows of a built in way to get the type of objects on a page other than having to manually cycle through them all.
Thanks
D'Arcy
Does anyone know an easier way to cycle through controls on a page without having to use recursion?
i.e. I want to set all my textboxes to look one way for one state, and another way for another. But I don't want to have to hardcode all the names
i.e.
TextBox1.BorderStyle = Inset
TextBox2.BorderStyle = Inset
etc.
What I want to do is just pass the page object to ONE sub and have it do the rest.
Just wondering if someone knows of a built in way to get the type of objects on a page other than having to manually cycle through them all.
Thanks
D'Arcy