我的目标是保存用户当前所在的网页,但出现错误。这是我的代码:
Dim C As String = "C:\"
Dim website As String = WebBrowser1.Url 'errors here!
Dim LocalFilePath As String = C + website
Dim objWebClient As New System.Net.WebClient
objWebClient.DownloadFile(website, LocalFilePath)
错误是它不会让我将该 URL 塞入我的字符串变量中。