Hi,

I want to be able to know when the selection of text in my textbox changes so that I can enable or disable the copy button.

Basically, when the event fires, I want to do a check to see if the selected text does not equal nothing so that I can enable the copy button so the selected text can be copied.

Thank you! I hope there's a way of doing this. I went through the events of the textbox and couldn't see one that handles the selection change of a textbox.

P.S. I do not want to have to work from mouse events, such as clicks. This would work by seeing if the selection doesn't equal nothing after clicks in the box, but this wouldn't handle any other way of selection - say selection from my code itself, or using the keyboard to select text without a mouse.