Google Maps does not work in c# winforms -


i have problem location of google maps in c# winforms application.

i message "you seem using unsupported browser." internet explorer - compatibility view removed google.it , google.com problem persists.

the code used follows:

private void btn_localizza_click(object sender, eventargs e) {    string street = txt_indirizzoaz.text;    string city = cbo_comuneaz.text;    string state = cbo_statoaz.text;    string zip = cbo_capaz.text;      try    {        stringbuilder add = new stringbuilder("http://maps.google.com/maps?q=");         add.append(street);        add.append(city);        add.append(state);        add.append(zip);        webbrowser1.navigate(add.tostring());          if (street != string.empty) {add.append(street + "," + "+");}        if (city != string.empty) {add.append(city + "," + "+");}        if (state != string.empty) {add.append(state + "," + "+");}        if (zip != string.empty) { add.append(zip + "," + "+"); }         webbrowser1.navigate(add.tostring());    }    catch (exception ex)    {        messagebox.show(ex.message + " si รจ verificato un errore durante la geolocalizzazione dell'azienda." +            " contattare l'amministratore", "errore", messageboxbuttons.ok, messageboxicon.error);    } 

}

maybe changing user agent string google considers supported?

i'm sure embedded object calling internet explorer system render it, more or less safe consider if current windows ie supported google maps app too.


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -