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 Try WebBrowser1.Navigate(New Uri(address)) Catch ex As System.UriFormatException Return End Try End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)