I wanted to make a simple google Maps(using a WebBrowser) in my application where you can type an address. At the beginning it was working, but since a few days it tells me that I'm using an incompatible browser for Google Maps. Here is the simple code :
private void searchData_Click(object sender, EventArgs e)
{
string rue = textBoxRue.Text; //address
// Google Maps
try
{
StringBuilder requete = new StringBuilder();
requete.Append("http://maps.google.com/maps?z=1&t=m&q=");
if (rue != string.Empty)
{
requete.Append(rue);
}
webBrowser1.Navigate(requete.ToString());
}
catch
{
MessageBox.Show("Erreur lors de l'exécution de la requête");
}
}
Does someone have an idea of the problem ?