Hi Leo,
Since s is constant you don't need to convert to lower case in each
iteration...
Also, if you need to compare strings case-independent, use
String.Compare(ctl.Name, s, True) where the third parameter is IgnoreCase.
It is faster that converting to lower case and uses less memory.
All that said, the faster way is:
chk = Me.Controls.Item("chkIsValid")
:-)

Signature
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
> Hi,
> If the control's name is stored in a string one can iterate through the
[quoted text clipped - 14 lines]
>
> Leo Leys