I am using the Scintilla control from ScintillaNet, and I need to have some control over the paste operations (in order to be able to check some things and/or update the text to be pasted).
I've tried to create a subclass of the Scintilla control and override the WndProc method. Then, I intercept the WM_PASTE message (0x0302), no luck. I never catch it.
Here is the code I use:
protected override void WndProc(ref Message m) { if (m.Msg == WM_PASTE) { MessageBox.Show("Paste"); } base.WndProc(ref m); }
Any idea?