Well I have a small problem. I'm currently working on a project and I want to check if the user has pressed the space.
Let's say I have
string Txt = "Hello, daniweb";
and I have a textbox which the user is writing on it.
I have made a foreach loop to check each letter in the event of the Textbox1_textChanged.
foreach (char letter2 in lblRichText.Text)
Then inside this loop i've put this condition.
if (char.IsWhiteSpace(letter2))
{
//message
}
But it doesn't work.