从Webbrowser到Textbox抓取选定或特定文本 [英] To Grab the Selected or Specific Text from Webbrowser to Textbox

查看:55
本文介绍了从Webbrowser到Textbox抓取选定或特定文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从Web浏览器中获取所选文本到vb.net中的文本框



https://www.google.co.in/ [ ]



i需要将仅Gmail文本抓取到文本框



Plz给出一些东西

I need to Grab the Selected text from the Webbrowser to textbox in vb.net

Example in https://www.google.co.in/[]

i need to Grab the Gmail only text to the textbox

Plz Give some tuts

推荐答案

如果您可以访问该网站的源代码,则可以修改代码,因此有ID或自定义标记。然后声明为HTML元素,



If you have access to the source code of that website, you can modify the code, so there is an ID or a custom tag. Then declare as an HTML Element,

Dim MyValue as HTMLElement
MyValue = WebBrowser1.Document.GetElementById("SearchBox")
Dim result as string = MyValue.GetAttribute("value")
messagebox.show(result)


这不起作用



i希望导航到 https://www.facebook.com/kim。 vana.7 [ ^ ] Kim这个名字vana想要出现在标签
this not working

i wants navigate to https://www.facebook.com/kim.vana.7[^] the name Kim vana Wants to appear in the label


这篇关于从Webbrowser到Textbox抓取选定或特定文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆