<?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: Opening up an old VBA form via Add-In in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/opening-up-an-old-vba-form-via-add-in/m-p/699777#M18749</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"That's a lot of VBA code. Have you considered moving competely out of VBA/Add-in model and convert everything over to your own .NET assemblies? Yes, it would be painful (it was to me too), but you will free yourself from the conditions/confines that you are finding yourself in now and in the future. "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure how to even start doing this.&amp;nbsp; Can you lead me to a simple getting started example like "hello World" on the click of a button.&amp;nbsp; Not sure how I would create something in .net and then bring it into ArcGIS.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Apr 2011 12:46:55 GMT</pubDate>
    <dc:creator>deleted-user-yA_w_FC9FKe5</dc:creator>
    <dc:date>2011-04-28T12:46:55Z</dc:date>
    <item>
      <title>Opening up an old VBA form via Add-In</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/opening-up-an-old-vba-form-via-add-in/m-p/699773#M18745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay I am really new to the whole Add-In and I am trying to go baby steps to move over.&amp;nbsp; What I would like to do is try to make the conversion slowly over to vb.net or C#.&amp;nbsp; Since I am a VB guy I am going with VB.Net.&amp;nbsp; However, I don't understand VB.Net it actually really confuses me for some reason.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, It seems as though my code still works in 10.0 but while my menus came in, none of my buttons came in when opening up my old 9.3 mxd in 10.0.&amp;nbsp; Please keep in mind I have well over 50,000 pages of code to convert.&amp;nbsp; We have a lot invested into VBA.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was trying to us Add-ins to create a button to call my forms.&amp;nbsp; I've gotten my button to post a message "Hello World".&amp;nbsp; I've even created another button that allows me to add some shapefiles in.&amp;nbsp; Yeah.&amp;nbsp; However, what I really really need right now is to be able to call these forms.&amp;nbsp; It would save me tremendous time and allow me to do this conversion slowly while giving my users the latest mxd functionality.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So how can I do this????&amp;nbsp; Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 17:55:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/opening-up-an-old-vba-form-via-add-in/m-p/699773#M18745</guid>
      <dc:creator>deleted-user-yA_w_FC9FKe5</dc:creator>
      <dc:date>2011-04-27T17:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Opening up an old VBA form via Add-In</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/opening-up-an-old-vba-form-via-add-in/m-p/699774#M18746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am really in the unknown class when it comes to these Add-in things, but I can comment on opening Userforms....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, let's say I have a button on a toolbar that needs to open a WindowsForm that I have added to my project/assembly.&amp;nbsp; Let's call it "frmMain".&amp;nbsp; So, in my class that has the Button's Click event, I would state what the frmMain is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

Private m_frmMain As frmMain

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then in the Button_Click, I'd create a new frmMain and show it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
If Not m_frmMain Is Nothing Then
&amp;nbsp;&amp;nbsp; m_frmMain.Dispose()
&amp;nbsp;&amp;nbsp; m_frmMain = Nothing
&amp;nbsp;&amp;nbsp; m_frmMain = New frmMain
&amp;nbsp;&amp;nbsp; m_frmMain.Show()
Else
&amp;nbsp;&amp;nbsp;&amp;nbsp; m_frmMain = New frmMain
&amp;nbsp;&amp;nbsp;&amp;nbsp; m_frmMain.Show()
End If
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:27:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/opening-up-an-old-vba-form-via-add-in/m-p/699774#M18746</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2021-12-12T05:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Opening up an old VBA form via Add-In</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/opening-up-an-old-vba-form-via-add-in/m-p/699775#M18747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for trying to help.&amp;nbsp; The form I am trying to open was created in the VBA of the MXD.&amp;nbsp; So this form is not include with the VB.Net project.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For some reason ESRI did not see it fit to have my button controls to come in like they have from all other version jumps where VBA is allowed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my project does this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.) Create an add-in button in VB.Net that opens my form that is in the MXD and not the .net solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully that makes some sense.&amp;nbsp; Please tell me I can do this.&amp;nbsp; Recreating these forms in .net is going to take forever.&amp;nbsp; I have decades of code in VBA.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 18:50:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/opening-up-an-old-vba-form-via-add-in/m-p/699775#M18747</guid>
      <dc:creator>deleted-user-yA_w_FC9FKe5</dc:creator>
      <dc:date>2011-04-27T18:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Opening up an old VBA form via Add-In</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/opening-up-an-old-vba-form-via-add-in/m-p/699776#M18748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks for trying to help.&amp;nbsp; The form I am trying to open was created in the VBA of the MXD.&amp;nbsp; So this form is not include with the VB.Net project.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;For some reason ESRI did not see it fit to have my button controls to come in like they have from all other version jumps where VBA is allowed.&lt;BR /&gt;&lt;BR /&gt;So my project does this:&lt;BR /&gt;1.) Create an add-in button in VB.Net that opens my form that is in the MXD and not the .net solution.&lt;BR /&gt;&lt;BR /&gt;Hopefully that makes some sense.&amp;nbsp; Please tell me I can do this.&amp;nbsp; Recreating these forms in .net is going to take forever.&amp;nbsp; I have decades of code in VBA.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ouch.&amp;nbsp; Well, hopefully someone will jump in here and provide a solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's a lot of VBA code.&amp;nbsp; Have you considered moving competely out of VBA/Add-in model and convert everything over to your own .NET assemblies?&amp;nbsp; Yes, it would be painful (it was to me too), but you will free yourself from the conditions/confines that you are finding yourself in now and in the future.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;VBA is totally gone at ArcGIS v10.1 I think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And yes, I find that the initial attempts at deployment/distribution is a pain, but it does get better as you gain experience when things go bad.&amp;nbsp; That is if deployment issues are what caused you to stick with VBA.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 19:04:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/opening-up-an-old-vba-form-via-add-in/m-p/699776#M18748</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2011-04-27T19:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Opening up an old VBA form via Add-In</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/opening-up-an-old-vba-form-via-add-in/m-p/699777#M18749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"That's a lot of VBA code. Have you considered moving competely out of VBA/Add-in model and convert everything over to your own .NET assemblies? Yes, it would be painful (it was to me too), but you will free yourself from the conditions/confines that you are finding yourself in now and in the future. "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure how to even start doing this.&amp;nbsp; Can you lead me to a simple getting started example like "hello World" on the click of a button.&amp;nbsp; Not sure how I would create something in .net and then bring it into ArcGIS.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 12:46:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/opening-up-an-old-vba-form-via-add-in/m-p/699777#M18749</guid>
      <dc:creator>deleted-user-yA_w_FC9FKe5</dc:creator>
      <dc:date>2011-04-28T12:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Opening up an old VBA form via Add-In</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/opening-up-an-old-vba-form-via-add-in/m-p/699778#M18750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Michael,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I put together a tutorial on moving a simple VBA utility (which includes a form), to a C# Add-in. It covers most of the basics:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://gis.qtools.com/blog/tutorials/vba-to-c-add-in/"&gt;VBA to C# Add-In Tutorial&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It has screenshots, code snips and some short videos.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jeff H&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 00:00:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/opening-up-an-old-vba-form-via-add-in/m-p/699778#M18750</guid>
      <dc:creator>JeffreyHamblin</dc:creator>
      <dc:date>2011-04-29T00:00:30Z</dc:date>
    </item>
  </channel>
</rss>

