<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Newbie question VB.NET + ArcGISRuntime in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/newbie-question-vb-net-arcgisruntime/m-p/252549#M2943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give a little more description on what you are wanting to do? Are you wanting to load a shapefile into an ArcMap session? Are you wanting to just have the shapefile loaded into your code so that you can do stuff with it later?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you have to call the FeatureLayer object in order to grab the shapefile. You're right that there are not many examples online. Take a look at this for some tidbits:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/net/desktop/api-reference/html/8fe405cf-fbb4-4644-964f-0dae4ef50900.htm" title="https://developers.arcgis.com/net/desktop/api-reference/html/8fe405cf-fbb4-4644-964f-0dae4ef50900.htm"&gt;Code Example - FeatureLayerViaShapefile&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(scroll to the bottom/middle and click on the&amp;nbsp; VB.NET area to toggle it off of C#).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or maybe you need to use the ShapefileWorkspaceFactory object to get the shapefile.&lt;/P&gt;&lt;P&gt;...new ESRI.ArcGIS.DataSourcesFile.ShapefileWorkspaceFactoryClass()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an example here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00490000005m000000" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00490000005m000000"&gt;ArcObjects 10 .NET SDK Help&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(scroll to the bottom or middle to get past the C# code) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Mar 2016 04:36:05 GMT</pubDate>
    <dc:creator>AdrianWelsh</dc:creator>
    <dc:date>2016-03-15T04:36:05Z</dc:date>
    <item>
      <title>Newbie question VB.NET + ArcGISRuntime</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/newbie-question-vb-net-arcgisruntime/m-p/252548#M2942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using MS VB 2015, and I have the Esri.ArcGISRuntime loaded as a reference.&lt;BR /&gt;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.&lt;BR /&gt;TIA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code&lt;/P&gt;&lt;P&gt;Public Class Form1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Async Sub OpenToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles OpenToolStripMenuItem.Click&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim dialog As New OpenFileDialog()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; With dialog&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Filter = "Shape|*.shp|All|*.*"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If DialogResult.OK = .ShowDialog Then&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim myShapefileTable As Esri.ArcGISRuntime.Data.ShapefileTable = Await myShapefileTable.OpenAsync(dialog.FileName)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End With&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/P&gt;&lt;P&gt;End Class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I get warning "BC42025&amp;nbsp;&amp;nbsp;&amp;nbsp; Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 03:59:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/newbie-question-vb-net-arcgisruntime/m-p/252548#M2942</guid>
      <dc:creator>MarcHillman</dc:creator>
      <dc:date>2016-03-15T03:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question VB.NET + ArcGISRuntime</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/newbie-question-vb-net-arcgisruntime/m-p/252549#M2943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give a little more description on what you are wanting to do? Are you wanting to load a shapefile into an ArcMap session? Are you wanting to just have the shapefile loaded into your code so that you can do stuff with it later?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you have to call the FeatureLayer object in order to grab the shapefile. You're right that there are not many examples online. Take a look at this for some tidbits:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/net/desktop/api-reference/html/8fe405cf-fbb4-4644-964f-0dae4ef50900.htm" title="https://developers.arcgis.com/net/desktop/api-reference/html/8fe405cf-fbb4-4644-964f-0dae4ef50900.htm"&gt;Code Example - FeatureLayerViaShapefile&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(scroll to the bottom/middle and click on the&amp;nbsp; VB.NET area to toggle it off of C#).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or maybe you need to use the ShapefileWorkspaceFactory object to get the shapefile.&lt;/P&gt;&lt;P&gt;...new ESRI.ArcGIS.DataSourcesFile.ShapefileWorkspaceFactoryClass()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an example here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00490000005m000000" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00490000005m000000"&gt;ArcObjects 10 .NET SDK Help&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(scroll to the bottom or middle to get past the C# code) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 04:36:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/newbie-question-vb-net-arcgisruntime/m-p/252549#M2943</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2016-03-15T04:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question VB.NET + ArcGISRuntime</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/newbie-question-vb-net-arcgisruntime/m-p/252550#M2944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have edited my post to show the code. It uses a fragment of the example you quote. Can't seem to get the OpenAsync method to work.&lt;BR /&gt;I just want to extract some shape data and export it as KML. No maps used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 04:49:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/newbie-question-vb-net-arcgisruntime/m-p/252550#M2944</guid>
      <dc:creator>MarcHillman</dc:creator>
      <dc:date>2016-03-15T04:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question VB.NET + ArcGISRuntime</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/newbie-question-vb-net-arcgisruntime/m-p/252551#M2945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fixed. Bit in red needs to be this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;Dim myShapefileTable As Esri.ArcGISRuntime.Data.ShapefileTable = Await Esri.ArcGISRuntime.Data.ShapefileTable.OpenAsync(dialog.FileName)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 08:18:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/newbie-question-vb-net-arcgisruntime/m-p/252551#M2945</guid>
      <dc:creator>MarcHillman</dc:creator>
      <dc:date>2016-03-15T08:18:42Z</dc:date>
    </item>
  </channel>
</rss>

