Well, if you really want to get the last word, you can do something like this ... Assuming, of course, that you are creating a line equal to the text of your rich text box.
string str="hello, how are you doing?"; if (str.Length >0) { int index=str.LastIndexOf(" ") + 1; str = str.Substring(index)); }
Then just return the line and do what you need to do with it.
Andrew backes
source share