if textbox.text is empty c# code example Example: how to check if textbox is empty in c# Click to copystring.IsNullOrWhiteSpace(textBox.Text); // returns boolean