I want to display GPS coordinates on Google Maps. For this purpose I chose web browser from the toolbox. But it show an error of unsupported browser. I tried updating my Internet Explorer. I also set Google Chrome as the Debugging Browser in Visual Studio but it didn't work.
This is the part of code where I am accessing the web browser.
try
{
StringBuilder querryaddress = new StringBuilder();
querryaddress.Append("http://ift.tt/1mEJKQl");
if (lat != string.Empty)
{
querryaddress.Append(lat + "," + "+");
}
webBrowser1.Navigate(querryaddress.ToString());
}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString(), "Error");
}
Error
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.
What is the best way to do this.?
Aucun commentaire:
Enregistrer un commentaire