c# - How to detect Copy event of WebBrowser control? -


i have windows forms application contains webbrowser control. want handle copy event (context menu -> copy ctrl+c) of webbrowser control , of own processing in event.

how can achieve this?

as far handling control+c, can wireup webbrowser's previewkeydown event , do:

private void webbrowser1_previewkeydown(object sender, previewkeydowneventargs e) {     if (e.keydata.tostring() == "c, control") {         debug.writeline("you pressed control + c");         // handle here     } } 

if have own context menu on web browser control + c copy item, handle click event.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -