c# how to check if a text box is not empty code example
Example 1: c# check if textbox is not empty
if (String.IsNullOrEmpty(textBox1.Text))
{
// Do something...
}
Example 2: how to check if textbox is empty in c#
string.IsNullOrWhiteSpace(textBox.Text); // returns boolean