I have complex UserControl (grid, edit controls for grid, etc…) and I want handle CTRL+C keyboard shortcut, however I don’t want disable a native functions by edit controls (textboxes, comboboxes, etc…). If the CTRL+C is not handled by other inner controls I want handle it by myself (copy whole row(s) from grid, etc…).
I tried override WndProc method in UserControl and check for WM_COPY and WM_COPYDATA, but it doesn’t work. It works only on final target control (TextBox for example).
You can do this by overriding ProcessCmdKey(). Check if a text box has the focus. For example: