Soemthing like this...
dim c as control
for each c in me.controls ' or iterate a container such as a Panel
if typeof c is texbox
directcast(c,textbox).text
' (gain access to one of it's properties here, TEXT is just one example)
' or do something else here
end if
next