This is not a homework or assignment. It is a thesis program. I am making a reservation system and I want my the username and password should be no space in between. I won't post here if it is just an assignment. I am making a big system, after I finished it I will share this here and on planetsourcecode.com so anyone can have a look for reference.
comatose, thank you for the information you gave me. I will include you as one of the contributor of the system. I will post it in there the zip file of the system as soon as I can. Thank you again. This thread is solved.
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 ...