Read in data from existing text boxes

jwebb

Member
Joined
Sep 4, 2006
Messages
11
Programming Experience
Beginner
How can I use a loop to read in data from text boxes that already exist on the form and were not created with an array.

Say I would like to do some comparisons on the text values of textboxes 34-50.

Thanks in advance.
 
foreach Control c in Form.Controls
if typeof c is textbox then ....


Note that the notion of "textbox 34-50" i'm not sure on.. you might have to keep a counter of how many textboxes youve seen so far..
 
Back
Top