dbfud1988: I know you meant well, but please do not just hand out code like this. Doing so goes against the 'no cheating' policy here at DaniWeb. We can assist and give advice, but we try to avoid simply answering homework assignments for students, as it interferes with the learning process. Tru,e there are borderline instances, and nearly everyone here has overstepped that line at some point or another, but this is a pretty clear-cut instance where providing code gratis is a Bad Thing.
I am at a loss to understand what you are trying to say. If you are 'not interested' in following the rules of the forum, I think you will find yourself banned by the moderators rather quickly. I'm not at all clear as to what the second sentence is meant to refer to; it simply makes no sense in this context.
As for not being American, most of the posters here are not, either, yet the rules apply to everybody. It has nothing to do with nationality, and everything to do with Daniweb's policies.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...