Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I am in a Richtextbox and I select a piece of text, Windows always seems to know it better and adjusts this selection to the complete word or something.

How can I prevent this behavior from taking place ? I just want the selection being done from mousedown to mouseup. Is there a property for this behavior ?

Thanks in advance.
Posted
Comments
Arkadeep De 31-Jan-15 8:42am    
that is the natural process..double click on a word, selecting the whole word..I don't think so you can change it.
One thing you can do update SelectionLength property every time to 0. This will work, I think so.

And second one you need to consult with mouseup and mousedown event...

https://msdn.microsoft.com/en-us/library/ms750580(v=vs.85).aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900