checking white space in a textbox
bool hasAllWhitespace = txtBox1.Text.Length > 0 && txtBox1.Text.Trim().Length == 0;
Reference : C# checking white space in a textbox
Written by 小叮噹文青
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#C#
Authors
Related Tags
#c#
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#