Hi All,
I'm trying to search the internet with a Webbrowser.
It's working, but I'm not really pleased with the fact that I have to put the weppage and the abbreviation of the country in it before it shows me the page.
That's the code to navigate into the web:
Thanks in advance.Code:Private Sub Navigate(ByVal address As String) If String.IsNullOrEmpty(address) Then Return If address.Equals("about:blank") Then Return If Not address.StartsWith("http://") And _ Not address.StartsWith("https://") Then address = "http://" & address End If If address.EndsWith("") then address = address & ("what should I put here for the abbreviations") End if Try webBrowser1.Navigate(New Uri(address)) Catch ex As System.UriFormatException Return End Try End Sub
sparrow1





Reply With Quote