Answers for "how to clear all textboxes in c# table"

C#
0

c# clear all textboxes

private void ClearTextBoxes()
 {
     Action<Control.ControlCollection> func = null;

     func = (controls) =>
         {
             foreach (Control control in controls)
                 if (control is TextBox)
                     (control as TextBox).Clear();
                 else
                     func(control.Controls);
         };

     func(Controls);
 }
Posted by: Guest on November-04-2020

C# Answers by Framework

Browse Popular Code Answers by Language