<?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 : Disable Menu Items</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Disable Menu Items]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 11:50:56 +0000</pubDate>
  <lastBuildDate>Mon, 09 May 2005 23:31:12 +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=1257</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[Disable Menu Items : CommandBars.ActiveMenuBar.FindControl(,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1257&amp;PID=6520&amp;title=disable-menu-items#6520</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1166">gsaez78</a><br /><strong>Subject:</strong> 1257<br /><strong>Posted:</strong> 09 May 2005 at 11:31pm<br /><br />CommandBars.ActiveMenuBar.FindControl(, ID, , True).Enabled = False<br><br>]]>
   </description>
   <pubDate>Mon, 09 May 2005 23:31:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1257&amp;PID=6520&amp;title=disable-menu-items#6520</guid>
  </item> 
  <item>
   <title><![CDATA[Disable Menu Items : If you are trying to find a popup...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1257&amp;PID=3562&amp;title=disable-menu-items#3562</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 1257<br /><strong>Posted:</strong> 19 October 2004 at 12:16pm<br /><br />If you are trying to find a popup menu, i.e. File, Edt, View, etc...the designer does not assign an ID to these controls, you will need tomake sure you click on the popup control and fill in a constant for theID.&nbsp; To do this, you will need to go to CommandBars-&gt;ResourceSymbols... and click on the "New" button to create a constant to assignto the popup.&nbsp; Then in your FindControl code you can search forthis constant.<br><br>&nbsp;"Another one:&nbsp;I want to activate the popup-menu on a commandbar from my code."<br>&nbsp;<br>&nbsp;&nbsp;&nbsp; Dim cmd As CommandBarPopup<br>&nbsp;&nbsp;&nbsp; Set cmd = CommandBars.ActiveMenuBar.FindControl(, ID_FILE, , True)<br>&nbsp;&nbsp;&nbsp; cmd.Execute<br><br>In the above code, I added the constant ID_FILE using the method described above int he designer. <br>]]>
   </description>
   <pubDate>Tue, 19 Oct 2004 12:16:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1257&amp;PID=3562&amp;title=disable-menu-items#3562</guid>
  </item> 
  <item>
   <title><![CDATA[Disable Menu Items : Thank you but that did not help.I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1257&amp;PID=3423&amp;title=disable-menu-items#3423</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=754">Trond</a><br /><strong>Subject:</strong> 1257<br /><strong>Posted:</strong> 11 October 2004 at 2:59am<br /><br /><P>Thank you but that did not help.<BR><BR>I have made the menu in CommandBarsDesigner and I am using those ID's that is generated there.</P><P>This code will return the object on&nbsp;normal toolbars:<BR>Commandbars.FindControl( &nbsp;, ID_CUT , ,&nbsp;' )<BR><BR>This code will return nothing&nbsp;on menubar:<BR>Commandbars.ActiveMenuBar.FindControl( &nbsp;, MNU_OPENFILE&nbsp; ,&nbsp; , True )<BR><BR>Yes, I am sure that the MNU_OPENFILE number is correct.<BR><BR>Best Regards,<BR>Trond</P><span style="font-size:10px"><br /><br />Edited by Trond</span>]]>
   </description>
   <pubDate>Mon, 11 Oct 2004 02:59:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1257&amp;PID=3423&amp;title=disable-menu-items#3423</guid>
  </item> 
  <item>
   <title><![CDATA[Disable Menu Items :  Read this post, it should answer...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1257&amp;PID=3409&amp;title=disable-menu-items#3409</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 1257<br /><strong>Posted:</strong> 10 October 2004 at 8:05pm<br /><br />Read this post, it should answer your queations:<br><a href="https://forum.codejock.com/forum_posts.asp?TID=607&amp;PN=1" target="_blank" target="_blank"> https://forum.codejock.com/forum_posts.asp?TID=607&amp;P N=1</a><br><br>Basically, to find a control in the Activemenubar you must set therecursive flag to True in the ActiveMenuBar.FindControl method.&nbsp; <br><br>To find a popup control you must manually set the id of the control soyou can find it.&nbsp; even if you specify an id when the popup controlis created you must still set the id property of the control.<br><br>Hope this helps<img src="http://forum.codejock.com/smileys/smiley1.gif" border="0"><br><span style="font-size:10px"><br /><br />Edited by SuperMario</span>]]>
   </description>
   <pubDate>Sun, 10 Oct 2004 20:05:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1257&amp;PID=3409&amp;title=disable-menu-items#3409</guid>
  </item> 
  <item>
   <title><![CDATA[Disable Menu Items : I can successfully disable and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1257&amp;PID=3406&amp;title=disable-menu-items#3406</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=754">Trond</a><br /><strong>Subject:</strong> 1257<br /><strong>Posted:</strong> 10 October 2004 at 2:50pm<br /><br /><P>I can successfully disable and enable toolbar buttons on a commandbar, but I am not able to disable and enable menu-items on toolbar.</P><P>What is the correct syntax?<BR><BR>Another one:&nbsp;I want to activate the popup-menu on a commandbar from my code. </P><P>Thank you,<BR>Trond</P>]]>
   </description>
   <pubDate>Sun, 10 Oct 2004 14:50:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1257&amp;PID=3406&amp;title=disable-menu-items#3406</guid>
  </item> 
 </channel>
</rss>