<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Problem Finding Command Bar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Problem Finding Command Bar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 03:22:16 +0000</pubDate>
  <lastBuildDate>Thu, 08 Jun 2006 00:47:50 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=4372</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Problem Finding Command Bar : I am having a problem location...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4372&amp;PID=13509&amp;title=problem-finding-command-bar#13509</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1945">dneilsen</a><br /><strong>Subject:</strong> 4372<br /><strong>Posted:</strong> 08 June 2006 at 12:47am<br /><br />I am having a problem location a command bar<br><br>I load my 5 command bars from an xcb file and there are two command bars that I wish to delete if the user does not have certain admin privlidges.<br><br>I am using the following piece of code to iterate through all the command bars and delete the correct bars.<br><br><table width="99%"><tr><td><pre class="BBcode"><br>foreach(XtremeCommandBars.CommandBar myBar in Instance.axCommandBars1)<br>{<br>&nbsp;&nbsp; if(myBar.BarID == ID.IDR_SUPERADMIN &amp;&amp; !isSuperAdmin)<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; myBar.Delete();<br>&nbsp;&nbsp; if(myBar.BarID == ID.IDR_ADMINISTRATOR &amp;&amp; !isAdmin)<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; myBar.Delete();<br>}<br></pre></td></tr></table><br><br>Now, for some reason, this foreach loop only loops through four of my command bars.&nbsp; The IDR_SUPERADMIN bar gets deleted but the IDR_ADMINISTRATOR bar, which most certainly exists, does not seem to be in the list?<br><br>Any idea on how this could occur?<br><br><br>]]>
   </description>
   <pubDate>Thu, 08 Jun 2006 00:47:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4372&amp;PID=13509&amp;title=problem-finding-command-bar#13509</guid>
  </item> 
 </channel>
</rss>