<?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 Implement cancel button on dockable window in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/implement-cancel-button-on-dockable-window/m-p/565183#M15224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am new to VB .NET and am converting a VBA form and its associated code to VB .NET. I need to put a cancel button on the form that closes the dockable window. Resetting the enclosed form object would be nice but I could do that manually. I've been able to unload the form from the button event but this leaves behind a blank dockable window. I've gotten a handle to the dockable window using the IDockableWindowManager from the form but get an error message about managed execution inside an OS Loader lock. Any thoughts? It seems like this should be a simple task so I hope I'm missing something obvious. Thanks -- Lesley&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Aug 2010 19:27:44 GMT</pubDate>
    <dc:creator>LesleyBross</dc:creator>
    <dc:date>2010-08-16T19:27:44Z</dc:date>
    <item>
      <title>Implement cancel button on dockable window</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/implement-cancel-button-on-dockable-window/m-p/565183#M15224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am new to VB .NET and am converting a VBA form and its associated code to VB .NET. I need to put a cancel button on the form that closes the dockable window. Resetting the enclosed form object would be nice but I could do that manually. I've been able to unload the form from the button event but this leaves behind a blank dockable window. I've gotten a handle to the dockable window using the IDockableWindowManager from the form but get an error message about managed execution inside an OS Loader lock. Any thoughts? It seems like this should be a simple task so I hope I'm missing something obvious. Thanks -- Lesley&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 19:27:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/implement-cancel-button-on-dockable-window/m-p/565183#M15224</guid>
      <dc:creator>LesleyBross</dc:creator>
      <dc:date>2010-08-16T19:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Implement cancel button on dockable window</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/implement-cancel-button-on-dockable-window/m-p/565184#M15225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To close the window, call IDockableWindow.Show and pass in False.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 12:16:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/implement-cancel-button-on-dockable-window/m-p/565184#M15225</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2010-08-17T12:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Implement cancel button on dockable window</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/implement-cancel-button-on-dockable-window/m-p/565185#M15226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you! I believe I tried that in the 9.3 environment and got the managed execution error. However... since originally posting this question I have updated to v10 and am using the add-in framework. IDockableWindow.Show works fine. Here is the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Close dockable window when OK button is clicked&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Sub cmdOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdOK.Click&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim dockWinID As UID = New UIDClass()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dockWinID.Value = My.ThisAddIn.IDs.frmAOIInfo&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim dockWindow As ESRI.ArcGIS.Framework.IDockableWindow = My.ArcMap.DockableWindowManager.GetDockableWindow(dockWinID)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dockWindow.Show(False)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 18:44:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/implement-cancel-button-on-dockable-window/m-p/565185#M15226</guid>
      <dc:creator>LesleyBross</dc:creator>
      <dc:date>2010-08-19T18:44:06Z</dc:date>
    </item>
  </channel>
</rss>

