private void webBrowser1_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e) { //the 67 is the mousebutton no4 (I have 5 5buttons and a scrolwhell-A4Tech_X7 mouse) //the mousebutton no4 is set to "ctrl+c" keys (Copy) if (e.KeyValue == 67) textBox2.Text=webBrowser1.DocumentText; }
webBrowser1.Document.ExecCommand("Copy", false, null); textBox2.Text = Clipboard.GetText();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)