| TBH, the more I look at this, the less sense it makes to attack the problem the way you are asking. Here's why:
If you enumerate all the controls in the container, you could have to go through potentially thousands of controls. You'll have to look at the properties of each of those controls (the control type and the control name) to see if it is one of the ones you are interested in. I don't really see any gain for you in doing this.
MAYBE if you make the textbox controls part of another control container and put them in a group, so that you could enumerate the controls in that particular container rather than enumerating all the controls on the form, it would work. That's something you'd probably have to play with.
__________________ Avatar and sig graphic by Pitch. Subscribers!
Ask about a custom graphic or avatar today! Later, Gizmo   |