this is not any kind of homework i searched in daniweb also but still unable to fine a proper solution for this...it seems u got my question wrong....I asked to enter a word in a textbox of vb.net form and load matching record in a data grid view from an access database....
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 ...