返回首页

这是一个很难的问题看似简单:
我如何从一个WebBrowser页面复制选定的文本,并粘贴到一个文本文件(例如)
我到现在为止:

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;

        }
到现在为止,我不能管理从WebBrowser的复制文本的选择。
如何做到这一点?
谢谢。

回答

评论会员: 时间:2