AnsweredAssumed Answered

Newbie question VB.NET + ArcGISRuntime

Question asked by myhillman on Mar 14, 2016
Latest reply on Mar 15, 2016 by myhillman

I'm using MS VB 2015, and I have the Esri.ArcGISRuntime loaded as a reference.
How do I open an existing Shapefile? I just want to extract some data, but having real trouble getting started. Can't seem to find any tutorials for the simple stuff.
TIA

 

This is my code

Public Class Form1

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    End Sub

 

    Private Async Sub OpenToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles OpenToolStripMenuItem.Click

        Dim dialog As New OpenFileDialog()

        With dialog

            .Filter = "Shape|*.shp|All|*.*"

            If DialogResult.OK = .ShowDialog Then

                Dim myShapefileTable As Esri.ArcGISRuntime.Data.ShapefileTable = Await myShapefileTable.OpenAsync(dialog.FileName)

            End If

        End With

    End Sub

End Class

 

but I get warning "BC42025    Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated."

Outcomes