<?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 Migrating from VBA to .NET vbModeless in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/migrating-from-vba-to-net-vbmodeless/m-p/388394#M10323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Quick question that can hopefully be answered...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just migrated an old tool from VBA to .NET and I got all the kinks out except one bit of code that I can't find the answer to...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In VBA, the user form was called with this:&amp;nbsp; UserForm1.Show vbModeless&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried to simply enter in UserForm1.Show, or UserForm1.ShowDialog...but neither is working...they both provide me with this error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Reference to non-shared member requires an object reference"&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm assuming there is a reference I need to add?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2013 19:41:28 GMT</pubDate>
    <dc:creator>BrianBaldwin1</dc:creator>
    <dc:date>2013-02-12T19:41:28Z</dc:date>
    <item>
      <title>Migrating from VBA to .NET vbModeless</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/migrating-from-vba-to-net-vbmodeless/m-p/388394#M10323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Quick question that can hopefully be answered...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just migrated an old tool from VBA to .NET and I got all the kinks out except one bit of code that I can't find the answer to...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In VBA, the user form was called with this:&amp;nbsp; UserForm1.Show vbModeless&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried to simply enter in UserForm1.Show, or UserForm1.ShowDialog...but neither is working...they both provide me with this error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Reference to non-shared member requires an object reference"&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm assuming there is a reference I need to add?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 19:41:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/migrating-from-vba-to-net-vbmodeless/m-p/388394#M10323</guid>
      <dc:creator>BrianBaldwin1</dc:creator>
      <dc:date>2013-02-12T19:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating from VBA to .NET vbModeless</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/migrating-from-vba-to-net-vbmodeless/m-p/388395#M10324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unlike VB and VBA, VB.NET does not provide global instances of your form classes.&amp;nbsp; You have to create an instance of a form class before you can show it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Dim form As New yourForm
form.Show()&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:50:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/migrating-from-vba-to-net-vbmodeless/m-p/388395#M10324</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2021-12-11T17:50:27Z</dc:date>
    </item>
  </channel>
</rss>

