if(textbox1.text == " '(more space)'") // Here is not working { MessageBox.Show("empty"); } if(textbox1.text == " ")Here is working { MessageBox.Show("empty"); }
if(textbox1.Text.Trim().Length==0) MessageBox.Show("empty");
if (String.IsNullOrWhiteSpace(textBox1.Text)) MessageBox.Show("empty");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)