How to extract last word in richtextbox in c#
问题 I am working with windows form. In my project i need to color the last word of rich text box. When someone write on the given text box of the application i need the last word that is just written on the richtextbox to be colored red or whatever. I found a way to extract the last word from the following link http://msdn.microsoft.com/en-us/library/system.windows.documents.textselection.select%28v=vs.95%29.aspx But i need more handy code to extract the last word if its possible. Please help.