title: C# desktop application doesn't share my physical location
body: <p>I am trying to get my current location( latitude and longitude ) in web application it works fine with following HTML5 code.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
      &lt;p id="demo"&gt;Click the button to get your coordinates:&lt;/p&gt;
      &lt;button onclick="getLocation()"&gt;Try It&lt;/button&gt;
      &lt;script&gt;
          var x = document.getElementById("demo");
          function getLocation()
          {
              if (navigator.geolocation)
              {
                  navigator.geolocation.getCurrentPosition(showPosition);
              }
              else
              {
                  x.innerHTML = "Geolocation is not supported by this browser.";
              }
          }
  
          function showPosition(position)
          {
              x.innerHTML="Latitude: " + position.coords.latitude + 
                  "&lt;br&gt;Longitude: " + position.coords.longitude;  
          }
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But I want to get latitude and longitude of user in desktop app. There is no option to use JavaScript in desktop app, so I am trying to access it using the web browser.
  When I am trying to access the above created web page from dektop application using webbrowser control (IE10) it doesn't share physical location, and nothing happens when I call the script by button click.</p>
  
  <p>Can anyone help me to get my location(latitude and longitude) in a desktop app(C#)?</p>