Horje
c# clear a textbox Code Example
c# clear a textbox
// Method 1: Use clear method
Textbox.clear();
// Method 2: Set text to string.Empty
Textbox.Text = string. Empty;
// Method 3: Set text to blank
Textbox.Text = "";
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);
 }




Csharp

Related
c# string to variable name Code Example c# string to variable name Code Example
String to byte array C# Code Example String to byte array C# Code Example
how to maximize but show taskbar c# Code Example how to maximize but show taskbar c# Code Example
merge point of two list Code Example merge point of two list Code Example
how to spawn a object in unity Code Example how to spawn a object in unity Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10