@altgen - When images are essential to the post, please upload the images to Daniweb and include them in your post. That ensures that the images will be available for as long as the post exists. Once the images are deleted from the external server your post becomes useless to anyone else.
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 ...