如何在Visual Basic中将当前的webbrowser URL添加到此类型的字符串?

时间:2015-09-05 22:05:51

标签: vb.net visual-studio

我一直试图弄清楚如何获取此字符串的webbrowser的当前网址:Dim t As String = client.DownloadString("browserurl")

'defining it like this didn't work, it ended up with error, and I also tried a few similar options. 
Dim browserurl As String = WebBrowser1.Url.ToString
'this didn't work either
Dim browserurl = WebBrowser1.Url.AbsolutePath
'neither did this...
Dim browserurl As New StreamReader(WebBrowser1.Url.AbsolutePath)

        Dim client As New WebClient
        Dim t As String = client.DownloadString("browserurl")
        Dim p As String = ""
        Dim r As New System.Text.RegularExpressions.Regex(p)
        Dim v As String = reg.Match(t).Value

我要做的是解析webbrowser访问的网站上的数据,并且URL不能相同,因为我需要它来处理我访问的多个网址。

0 个答案:

没有答案