如果我想浏览像http://example.com/这样的网站 我希望当网站导航时,它会显示该示例有一个页面引用,如https://www.google.com.pk/search?q=need+help 那么代码是什么?为此在visual basic
这是我的代码
Public Class Form1
Dim pageReverence As String = "google.com.pk/search?q=need+help"
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim website As String = txtWebsite.Text
WebBrowser1.Navigate(website, pageReverence.ToString)
End Sub
End Class
答案 0 :(得分:1)
是不是
WebBrowser1.Navigate(pageReverence)
我不确定Dim website As String = txtWebsite.Text
是什么