private void ClearTextBox() { foreach (var control in pnlDetail.Controls) { if (!(control is TextBox)) continue; var txtBox = (TextBox)control; txtBox.Text = String.Empty; } }
private void ClearTextBox() { foreach (var control in pnlDetail.Controls) { if (!(control is TextBox)) continue; var txtBox = (TextBox)control; txtBox.Text = String.Empty; } }
转载于:https://www.cnblogs.com/vipsoft/archive/2012/04/22/2464784.html