<?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: Make toolbar visible in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/make-toolbar-visible/m-p/238019#M6155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The CommandBars object can be used to access any toolbar, menu, command, or tool regardless of whether or not it is currently visible in the application.&amp;nbsp; The following VBA code will toggle the visibility of the 3D Analyst toolbar.&amp;nbsp; All you need to do is replace the ThisDocument object with a reference to the current document and replace the GUID with the correct value for the toolbar you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Sub toggle3dAnalystToolbar()
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim uid As New uid
&amp;nbsp;&amp;nbsp;&amp;nbsp; uid.Value = "{3FA6313B-7EB4-11D4-A10D-00508BD60CB9}"
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim commandBar As ICommandBar
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set commandBar = ThisDocument.CommandBars.Find(uid)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; commandBar.Dock (esriDockToggle)
End Sub
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 11:59:14 GMT</pubDate>
    <dc:creator>NeilClemmons</dc:creator>
    <dc:date>2021-12-11T11:59:14Z</dc:date>
    <item>
      <title>Make toolbar visible</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/make-toolbar-visible/m-p/238018#M6154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am looking for a .net code snippet that will make a standard ArcMAP toolbar visible. Logically one would just get the CommandBars object, find the toolbar in there and set it visible. Of course, this doesn't work since the commandbars object only has toolbars that are already visible, nor is there any method for adding a toolbar to it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also found some code that uses a CategoryFactoryClass to get a toolbardef object for the toolbar I want, but that's a dead end as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This can't be that hard to do!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 18:40:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/make-toolbar-visible/m-p/238018#M6154</guid>
      <dc:creator>BerndtNording</dc:creator>
      <dc:date>2011-03-28T18:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Make toolbar visible</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/make-toolbar-visible/m-p/238019#M6155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The CommandBars object can be used to access any toolbar, menu, command, or tool regardless of whether or not it is currently visible in the application.&amp;nbsp; The following VBA code will toggle the visibility of the 3D Analyst toolbar.&amp;nbsp; All you need to do is replace the ThisDocument object with a reference to the current document and replace the GUID with the correct value for the toolbar you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Sub toggle3dAnalystToolbar()
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim uid As New uid
&amp;nbsp;&amp;nbsp;&amp;nbsp; uid.Value = "{3FA6313B-7EB4-11D4-A10D-00508BD60CB9}"
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim commandBar As ICommandBar
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set commandBar = ThisDocument.CommandBars.Find(uid)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; commandBar.Dock (esriDockToggle)
End Sub
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:59:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/make-toolbar-visible/m-p/238019#M6155</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2021-12-11T11:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Make toolbar visible</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/make-toolbar-visible/m-p/238020#M6156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, that does work! I was trying to find them using the name of the toolbar which seems to work for custom toolbars but not the built-in ones. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had to use VBA's arcid to get the UID. In another thread from 2006 you said one could find UIDs by typing GUID into the help, but that does not seem to work anymore in the "new" style help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I eventually found them under Contents | General Reference | Names and IDs | Arcmap commands,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but there's got to be a better way...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 18:58:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/make-toolbar-visible/m-p/238020#M6156</guid>
      <dc:creator>BerndtNording</dc:creator>
      <dc:date>2011-03-29T18:58:40Z</dc:date>
    </item>
  </channel>
</rss>

