thanks for your replay,
but when i press enter corsur hide and don't set next focus.
if (e.KeyChar == (char)13)//press Enter Key
Control currCtl = (Control)sender; //current control
e.Handled = true;
Control c = GetNextControl(currCtl, true);
Firstly, please try not to resurrect old threads as this violates daniweb forum rules.
Secondly, this is the C# board, if your problem is ASP.net related then you will have access to a better pool of knowledge and experience if you post it on the asp.net board.
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 ...