<?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 Visual Studio in ArcGIS in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/opening-visual-studio-in-arcgis/m-p/397358#M10611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Actually, I can get it to open a form, but the form is not "owned" by the application window, so it floats independently and can get hidden behind the application window or other windows if I'm not careful. I have found a grand total of ZERO help or discussion of this topic so far.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try searching the old forums:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/forums.asp?c=93" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.esri.com/forums.asp?c=93&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You probably won't find anything specific to add-ins but you'll find plenty of threads on ArcObjects and general programming questions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To display the form so that it floats on top of ArcMap but doesn't go behind it when the user clicks the main ArcMap window you need to call the overloaded Form.Show method and pass in the form's owner.&amp;nbsp; The owner reference must be of type IWin32Window.&amp;nbsp; ArcObjects doesn't expose a reference to the actual window but you can create your own class that implements IWin32Window as shown below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Class ModelessDialog
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Implements System.Windows.Forms.IWin32Window
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private hwnd As System.IntPtr

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;summary&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' Returns the form handle.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;/summary&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;value&amp;gt;&amp;lt;/value&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public ReadOnly Property Handle() As System.IntPtr Implements System.Windows.Forms.IWin32Window.Handle
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get
&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; Return hwnd
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Get
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Property

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;summary&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' Constructor.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;/summary&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;param name="handle"&amp;gt;The form handle passed as an IntPtr&amp;lt;/param&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub New(ByVal handle As System.IntPtr)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hwnd = handle
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;summary&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' Constructor.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;/summary&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;param name="handle"&amp;gt;The form handle passed as an integer&amp;lt;/param&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub New(ByVal handle As Integer)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hwnd = CType(handle, IntPtr)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub
&amp;nbsp;&amp;nbsp;&amp;nbsp; End Class
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To show the dialog you create a new instance of this class and pass it in.&amp;nbsp; All you need is a reference to the ArcMap application so that you can pass in its window handle to the class constructor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim form As New yourForm&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;form.Show(New ModelessDialog(m_application.hWnd))&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 18:10:20 GMT</pubDate>
    <dc:creator>NeilClemmons</dc:creator>
    <dc:date>2021-12-11T18:10:20Z</dc:date>
    <item>
      <title>Opening Visual Studio in ArcGIS</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/opening-visual-studio-in-arcgis/m-p/397354#M10607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey folks....this is probably a really silly question, but...I can't figure it out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just installed the .NET SDk for ArcGIS 10. Before it installed, it prompted me to download MS Visual Studio 2008, which I did. I finally got the SDK to install and I want to start playing around. I haven't touched this stuff in about 3 years, so the last I remember in ArcGIS 9.2, you could open ArcMap, Go to the tools menu and there was a drop down that allowed you to open visual studio. I can't seem to find that at all. I went to open a visual studio project from the start menu, and all I see if a folder for and I can't even find the prompt to open Studio (See picture) Can someone point me in the right direction? I'm literally just getting started with developing again....so call me a noob &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]12971[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 17:50:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/opening-visual-studio-in-arcgis/m-p/397354#M10607</guid>
      <dc:creator>MikeMacRae</dc:creator>
      <dc:date>2012-03-23T17:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Opening Visual Studio in ArcGIS</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/opening-visual-studio-in-arcgis/m-p/397355#M10608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're referring to the VBA editor, not Visual Studio.&amp;nbsp; ESRI no longer supports VBA but I believe you can still contact them and get a license for it if you want to use it for ArcGIS 10.&amp;nbsp; Starting with the 10.1 release, VBA will no longer be available.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 18:04:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/opening-visual-studio-in-arcgis/m-p/397355#M10608</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-03-23T18:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Opening Visual Studio in ArcGIS</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/opening-visual-studio-in-arcgis/m-p/397356#M10609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, noob:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having already setup Visual Studio, now download and install the ArcGIS SDK for .NET, get all of your service packs on, then start learning about "Add-ins", new at 10.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And beware, even though ESRI says there is "a lot" of documentation about Add-ins available, I am finding it EXTREMELY TRICKY to create an add-in that can open a standard Windows Form properly. Actually, I can get it to open a form, but the form is not "owned" by the application window, so it floats independently and can get hidden behind the application window or other windows if I'm not careful. I have found a grand total of ZERO help or discussion of this topic so far.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, the Add-in mechanism is very cool, and once I figure out my little form ownership issue, I think I'm going to love it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While it is true that you can get the VBA license from ESRI for version 10.0 only, it is a pain in the rear to install because it requires a separate license key. Plus, if you used to keep any VBA code in the User Template code module, you will be surprised to learn that ESRI has eliminated the user template (MXT file) at version 10.0, so now you must save your code in the MXD Document module. You can actually save code in the Normal Template module (yes, there's still a Normal template, but no user templates) but then you cannot call such code from a toolbar button or tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Welcome to ESRI's new world order.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 22:06:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/opening-visual-studio-in-arcgis/m-p/397356#M10609</guid>
      <dc:creator>JimIsbell</dc:creator>
      <dc:date>2012-03-23T22:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Opening Visual Studio in ArcGIS</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/opening-visual-studio-in-arcgis/m-p/397357#M10610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You're referring to the VBA editor, not Visual Studio.&amp;nbsp; ESRI no longer supports VBA but I believe you can still contact them and get a license for it if you want to use it for ArcGIS 10.&amp;nbsp; Starting with the 10.1 release, VBA will no longer be available.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Neil, VBA is available in 10.1.&amp;nbsp; I have the licenses installed and have run it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Mar 2012 13:41:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/opening-visual-studio-in-arcgis/m-p/397357#M10610</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-03-24T13:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Opening Visual Studio in ArcGIS</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/opening-visual-studio-in-arcgis/m-p/397358#M10611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Actually, I can get it to open a form, but the form is not "owned" by the application window, so it floats independently and can get hidden behind the application window or other windows if I'm not careful. I have found a grand total of ZERO help or discussion of this topic so far.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try searching the old forums:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/forums.asp?c=93" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.esri.com/forums.asp?c=93&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You probably won't find anything specific to add-ins but you'll find plenty of threads on ArcObjects and general programming questions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To display the form so that it floats on top of ArcMap but doesn't go behind it when the user clicks the main ArcMap window you need to call the overloaded Form.Show method and pass in the form's owner.&amp;nbsp; The owner reference must be of type IWin32Window.&amp;nbsp; ArcObjects doesn't expose a reference to the actual window but you can create your own class that implements IWin32Window as shown below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Class ModelessDialog
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Implements System.Windows.Forms.IWin32Window
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private hwnd As System.IntPtr

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;summary&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' Returns the form handle.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;/summary&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;value&amp;gt;&amp;lt;/value&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public ReadOnly Property Handle() As System.IntPtr Implements System.Windows.Forms.IWin32Window.Handle
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get
&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; Return hwnd
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Get
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Property

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;summary&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' Constructor.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;/summary&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;param name="handle"&amp;gt;The form handle passed as an IntPtr&amp;lt;/param&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub New(ByVal handle As System.IntPtr)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hwnd = handle
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;summary&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' Constructor.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;/summary&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;param name="handle"&amp;gt;The form handle passed as an integer&amp;lt;/param&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub New(ByVal handle As Integer)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hwnd = CType(handle, IntPtr)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub
&amp;nbsp;&amp;nbsp;&amp;nbsp; End Class
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To show the dialog you create a new instance of this class and pass it in.&amp;nbsp; All you need is a reference to the ArcMap application so that you can pass in its window handle to the class constructor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim form As New yourForm&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;form.Show(New ModelessDialog(m_application.hWnd))&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:10:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/opening-visual-studio-in-arcgis/m-p/397358#M10611</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2021-12-11T18:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Opening Visual Studio in ArcGIS</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/opening-visual-studio-in-arcgis/m-p/397359#M10612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Neil, VBA is available in 10.1.&amp;nbsp; I have the licenses installed and have run it.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the correction.&amp;nbsp; Looks like ESRI has had a change of plans.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 13:05:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/opening-visual-studio-in-arcgis/m-p/397359#M10612</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-03-26T13:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Opening Visual Studio in ArcGIS</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/opening-visual-studio-in-arcgis/m-p/397360#M10613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@Neil,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you SO MUCH. This works PERFECTLY!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI developers can sometimes really confound my sense of consistency. I found in the online documentation an "ArcGIS Explorer Style Guide for Developing Add-ins", in which it explains how the ESRI.ArcGISExplorer.Application namespace returns an IWin32Window reference. EXACTLY THE OBJECT I WOULD NEED for my ArcMap add-in. Except that the ArcMap add-in's My.ArcMap.Application object exposes just the hWnd integer property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;MyForm.Owner = My.ArcMap.Application.Window&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How much easier THAT would have been! But I suppose I may find other uses for the ModelessDialog class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your help is MUCH appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 17:22:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/opening-visual-studio-in-arcgis/m-p/397360#M10613</guid>
      <dc:creator>JimIsbell</dc:creator>
      <dc:date>2012-03-26T17:22:38Z</dc:date>
    </item>
  </channel>
</rss>

