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
Post a Comment