Display Geographic Coordinates

Feb 1, 2011 at 6:21 PM
Edited Feb 1, 2011 at 6:33 PM

What is the best method for displaying the geographic coordinates in a status bar? Using the example below works, but there is about a 1 second delay before it updates. In the DemoMap it appear to be instantaneous. Also, I am creating a new statusstrip to show this data. In the DemoMap.exe it appears in the SpatialStatusStrip. Is there a provision for showing this in the SpatialStatusStrip? Additionally, the SpatialStatusStrip progress bar is always visible. Can it be modified to only be visible when it is called?

Right now I am using an event:

AddHandler Map1.GeoMouseMove, AddressOf MapGeoMouseMove

From here I use:

Private Sub MapGeoMouseMove(ByVal sender As Object, ByVal e As GeoMouseArgs) Handles Map1.GeoMouseMove


            ToolStripStatusLabel6.Text = "X , Y : " & e.GeographicLocation.X & " , " & e.GeographicLocation.Y

        Catch ex As Exception

        End Try

    End Sub