How can I check in C# that is there a white space only in a textbox and perform some operation after that?
if (System.Text.RegularExpressions.Regex.IsMatch(textBox1.Text, @"\s",)) { // do your code }