P
Paul E Collins
I have a toolbar with Cut, Copy and Paste buttons, which need to be enabled
and disabled as appropriate.
I am using SetClipboardViewer and WM_DRAWCLIPBOARD to monitor Clipboard
changes and update the Paste button.
However, I am having trouble with Cut and Copy, which need to be available
whenever there is a selection in the textbox. Surprisingly, there is no
SelectionChanged event for this control.
What is the correct way of monitoring a textbox for a change in selection? I
don't want to use a timer for this unless I have to!
P.
and disabled as appropriate.
I am using SetClipboardViewer and WM_DRAWCLIPBOARD to monitor Clipboard
changes and update the Paste button.
However, I am having trouble with Cut and Copy, which need to be available
whenever there is a selection in the textbox. Surprisingly, there is no
SelectionChanged event for this control.
What is the correct way of monitoring a textbox for a change in selection? I
don't want to use a timer for this unless I have to!
P.