Gosh this sounds a lot like a homework question.
I'm going to assume it is one, and I'm going to be pretty vague.
If I fly into San Francisco and I need a vehicle for the week, I go to the car rental stand. I don't ask the person at the desk for a particular model of car, because I don't care what kind of car it is - all I care about is that it has the functionality defined by the word "car" - I can get into it, start it up, drive it around, park it, put my luggage in the back of it, and so forth - and the details on the nameplate aren't interesting to me.
The guy at the desk, however, has to know what he's giving me - if only so he knows what to expect back from me at the end of the week. So, I ask him for a "car" and he gives me a "Ford Extinction", and off I go, happy as the lark in the clear morning air.
Does that help at all? I hope so - if not, read up the relevant Sun tutorials, especially starting here. You'll find it if you read along a little ways in that.
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 ...