<?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 : Enable/Disable</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Enable/Disable]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 05:10:20 +0000</pubDate>
  <lastBuildDate>Mon, 21 Aug 2006 14:53:53 +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=4843</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[Enable/Disable : Hi, code looks right. What error...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4843&amp;PID=15071&amp;title=enable-disable#15071</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4843<br /><strong>Posted:</strong> 21 August 2006 at 2:53pm<br /><br /><DIV>Hi,</DIV><DIV>code looks right. What error text you see?</DIV>]]>
   </description>
   <pubDate>Mon, 21 Aug 2006 14:53:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4843&amp;PID=15071&amp;title=enable-disable#15071</guid>
  </item> 
  <item>
   <title><![CDATA[Enable/Disable : Hi, I am trying to enable a button...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4843&amp;PID=15070&amp;title=enable-disable#15070</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1884">moe188</a><br /><strong>Subject:</strong> 4843<br /><strong>Posted:</strong> 21 August 2006 at 2:22pm<br /><br />Hi,<DIV>I am trying to enable a button at run-time erroe but for some reason I can not get it to work and I am recieving a error message:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>My code:</DIV><DIV>&nbsp;</DIV><DIV>Set ControlFile = MenuBar.ActiveMenuBar.Controls.Add(xtpControlPopup, 0, "&amp;File")<BR>&nbsp;With ControlFile.CommandBar.Controls<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, FILE_NEW, "&amp;New"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, FILE_OPEN, "&amp;Open"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlButton, FILE_SAVE, "&amp;Save"):&nbsp; Control.BeginGroup = True: Control.Enabled = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlButton, FILE_PRINT, "&amp;Print"): Control.Enabled = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlButton, FILE_EXIT, "&amp;Exit"): Control.BeginGroup = True<BR>End With</DIV><DIV>&nbsp;</DIV><DIV>and within the commandbar_update</DIV><DIV>select case control.id</DIV><DIV>case FILE_PRINT: if PName="" then control.enable=false else control.enable=true</DIV><DIV>end select</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Please Help!</DIV>]]>
   </description>
   <pubDate>Mon, 21 Aug 2006 14:22:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4843&amp;PID=15070&amp;title=enable-disable#15070</guid>
  </item> 
 </channel>
</rss>