Removing white spaces and spelling check for string
Hi,
I am making an application in which i am comparing string entered in textbox and the text property of the forms.
In the text property, I have entered text without spaces.
Now , I want that the string which I am entering should have all white spaces removed.And , also, if user enters wrong spelling then it should be marked red to tell the user to correct the spelling.Like we have such functionality in csharpcorner forums as well , that it makes a red line for wrong text.......
Can anyone tell me how to do this................
lohith bandrehalliPosted Sep 4, 2009, 1:47 AM
http://www.jspell.com/ajax-spell-checker.html?gclid=COrppuvl_5kCFc0vpAod9GTRGQ
http://www.codeproject.com/KB/string/netspell.aspx
http://www.codeproject.com/KB/recipes/spelldictionary.aspx
http://www.codeproject.com/KB/aspnet/checkspelling.aspx
http://www.codeproject.com/KB/cs/SuperFastSpellCheck.aspx
vinni jainPosted Sep 2, 2009, 9:40 AM
Kindly tell me some solution for spelling check.Like if user type something in textbox and the spelling is wrong ,in that case it should mark it with red line and user can correct spelling by right click on that word in the same way as we can do in microsoft word.
Kirtan PatelPosted Aug 31, 2009, 8:07 AM
You can Remove White Spaces From String Using Below Code
dont forget to mark "Do you like answer" please it will give me credits :)
char[] TextData = textBox1.Text.Trim().ToCharArray();
string FinalString = "";
foreach (char c in TextData)
{
if (c != ' ')
{
FinalString += c.ToString();
}
}
MessageBox.Show(FinalString);
Jan MontanoPosted Aug 31, 2009, 2:07 AM