|
-
Aug 8th, 2005, 02:45 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Detect change to selection in textbox
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|