check if textbox is emptyc# code example Example: c# check if textbox is not empty if (String.IsNullOrEmpty(textBox1.Text)) { // Do something... }