Reputation: 881
i have written a simple vb application to show the google map . But it is not working properly.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim City As String = TextBox1.Text
Try
Dim queryAddress As New StringBuilder
queryAddress.Append("http://maps.google.com/maps?q=")
If TextBox1.Text = String.Empty Then
queryAddress.Append(City + " , " & " + ")
End If
WebBrowser1.Navigate(queryAddress.ToString())
Catch ex As Exception
MessageBox.Show("UnAvailable")
End Try
End Sub
when simple click on button it shows a place . but when i give something input in the textbox and search it, shows
"You seem to be using an unsupported browser. Old browsers can put your security at risk, are slow and don't work with newer Google Maps features. To access Google Maps, you'll need to update to a modern browser."
Any suggestion ? it spoiled my whole day.
thank you
Upvotes: 4
Views: 1864
Reputation: 881
Thank for valuable response... i did like removing some parts..
If TextBox1.Text = String.Empty Then
queryAddress.Append(City)
End If
Upvotes: 4