c# - selecting word from textbox -


i'm looking method value selected word textbox.

for example:

i have textbox.text =" how you";

when select "are" should message selected word messegebox.show(selectedword);

windows forms textbox doesn't have selectionchanged event, although richtextbox control does. use variety of hacks such timer, handling mouse , key events trigger selection change logic. use selectedtext others have suggested.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -