I need to transform the copied selection in a winform textbox before copying to clipboard. I have the ctrl-c done, but the right click copy would seem to require overriding WinProc,and the link in an example in how to disable copy, Paste and delete features on a textbox using C# for WM_PASTE is no longer is valid. I would add failure may be a feature, because Ctrl-c could be transformed and right click copy could be the literal, both of which I need to do. I had hoped to radio button a state for a transformed or literal selection for choosing behavior.
Asked
Active
Viewed 101 times
1
-
It's not clear what is not working. Of course, if you need to *intercept* a Copy operation, `WM_PASTE` won't do much, you need to handle the `WM_COPY` message. – Jimi Dec 11 '19 at 11:49
1 Answers
0
My question was based on reading that the only way to do this was to handle a WM_COPY, but the better solution would be to implement a context menu strip for each text box as needed. The right click context would then be handled by event handlers.

user3461121
- 59
- 6