How do I get notified of a selection change in a text box in .NET 2.0? I was unable to find a SelectionChanged event or an OnSelectionChanged method. What is the best workaround for this (without having to PInvoke, of course)?
+2
A:
You could use a RichTextBox and set Multiline to false. It has a OnSelectionChanged.
Hamid
2009-03-15 15:32:40
A great idea. Any disadvantages?
Vulcan Eager
2009-03-15 15:40:00
I don't know from the top of my head. Might be you need a little tweaking to get it as dumb as a TextBox ;)
Hamid
2009-03-15 15:46:42