<?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: Auto Hide Create Features Window using vb.net in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/auto-hide-create-features-window-using-vb-net/m-p/7312#M196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Many thanks Alexander - that's brilliant! &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;And thanks for the tip about the categories.exe - I hadn't realised that existed so I'm sure that will prove useful in the future.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The window doesn't dock at the side, like the ArcCatalog and Search ones, as I had hoped, just disappears totally but at least I now have a hold of the window so I can play with options which is a massive step in the right direction!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Feb 2012 06:00:40 GMT</pubDate>
    <dc:creator>NikkiSmith</dc:creator>
    <dc:date>2012-02-09T06:00:40Z</dc:date>
    <item>
      <title>Auto Hide Create Features Window using vb.net</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/auto-hide-create-features-window-using-vb-net/m-p/7310#M194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to auto hide the Create Features window in Arc 10 using .net.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I start editing through code so it doesn't open the create features window automatically so I then have code that opens the Create features window. However, I can't seem to then get it to hide. I had thought that I could access it using Idockablewindow but it doesn't seem to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my code that opens the Create Features window (this works fine)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Dim pUid As UID = New UID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; pUid.Value = "esriEditor.CreateFeatureDockWinCommand" 'Create Features dockable window&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pitem As ICommandItem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pitem = g_App.Document.CommandBars.Find(pUid)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pitem.Execute()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I run the following bit of code to try and hide the window&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; Dim pDockableWindowsManager As IDockableWindowManager = TryCast(g_App, IDockableWindowManager)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim CFWindow As IDockableWindow&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CFWindow = pDockableWindowsManager.GetDockableWindow(pUid)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If CFWindow Is Nothing Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox("Nothing found")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CFWindow.Show(false)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem is that CFWindow is always nothing. I've tried the sample code in the help for IDockableWindow that picks up the TOC and put in the UID for the TOC instead of the create features one and my code works fine with that but it just doesn't work for picking up the create features window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be much appreciated, I'm sure it's just something simple I must have missed out but it's driving me mad.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nikki&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 18:52:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/auto-hide-create-features-window-using-vb-net/m-p/7310#M194</guid>
      <dc:creator>NikkiSmith</dc:creator>
      <dc:date>2012-02-08T18:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Hide Create Features Window using vb.net</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/auto-hide-create-features-window-using-vb-net/m-p/7311#M195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like you are trying to use the classId of the CreateFeatureDockWinCommand command to find the CreateFeatureDockWin dockable window...&amp;nbsp; These are two separate UI elements.&amp;nbsp;&amp;nbsp; Try using "esriEditor.CreateFeatureDockWin" or "{EA61CE18-4B4F-4767-BA31-A11EC1C63DBB}"&amp;nbsp; (the GUID for that ClassId)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Dim dockWinUid As UID = New UID dockWinUid .Value = "{EA61CE18-4B4F-4767-BA31-A11EC1C63DBB}" 'Create Features dockable window&amp;nbsp; Dim pDockableWindowsManager As IDockableWindowManager = TryCast(g_App, IDockableWindowManager) Dim CFWindow As IDockableWindow CFWindow = pDockableWindowsManager.GetDockableWindow(dockWinUid ) If CFWindow Is Nothing Then MsgBox("Nothing found") Else CFWindow.Show(false) End If&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can get all the guids from the registry (almost impossible to sort through) or from categories.exe.&amp;nbsp; Categories.exe is in the Desktop10.0\bin directory.&amp;nbsp; In there, turn off hide esri components and go to the appropriate category.&amp;nbsp; In this case ESRI Mx Dockable Windows.&amp;nbsp; Mx is for ArcMap, Gx ArcCatalog, Gx globe, Sx Scene.&amp;nbsp; Then there is Gx Mx which are both ArcCatalog and ArcMap.&amp;nbsp; In this case create feature is ArcMap only so ESRI Mx Dockable Windows.&amp;nbsp; Find the item in there, gives the GUI and string.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 20:33:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/auto-hide-create-features-window-using-vb-net/m-p/7311#M195</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2012-02-08T20:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Hide Create Features Window using vb.net</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/auto-hide-create-features-window-using-vb-net/m-p/7312#M196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Many thanks Alexander - that's brilliant! &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;And thanks for the tip about the categories.exe - I hadn't realised that existed so I'm sure that will prove useful in the future.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The window doesn't dock at the side, like the ArcCatalog and Search ones, as I had hoped, just disappears totally but at least I now have a hold of the window so I can play with options which is a massive step in the right direction!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 06:00:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/auto-hide-create-features-window-using-vb-net/m-p/7312#M196</guid>
      <dc:creator>NikkiSmith</dc:creator>
      <dc:date>2012-02-09T06:00:40Z</dc:date>
    </item>
  </channel>
</rss>

