<?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 : Disabling button</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Disabling button]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 13:44:49 +0000</pubDate>
  <lastBuildDate>Wed, 14 Mar 2007 08:53:17 +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=6631</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[Disabling button : You don&amp;#039;t have to call the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6631&amp;PID=21152&amp;title=disabling-button#21152</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1790">jcollier</a><br /><strong>Subject:</strong> 6631<br /><strong>Posted:</strong> 14 March 2007 at 8:53am<br /><br />You don't have to call the event.&nbsp; It runs automatically every few milliseconds.&nbsp; Just put the Select Case in the Update Event.&nbsp; If you have a case for each of the buttons that you may want to enable/disable, the update event will update their enabled status to the value of the boolean variable every time it runs.&nbsp; It sounds like a lot of overhead but you shouldn't notice any performance problems.]]>
   </description>
   <pubDate>Wed, 14 Mar 2007 08:53:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6631&amp;PID=21152&amp;title=disabling-button#21152</guid>
  </item> 
  <item>
   <title><![CDATA[Disabling button : thanks for the reply. I am not...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6631&amp;PID=21142&amp;title=disabling-button#21142</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2840">Carter</a><br /><strong>Subject:</strong> 6631<br /><strong>Posted:</strong> 13 March 2007 at 7:58pm<br /><br />thanks for the reply.&nbsp; I am not sure what you mean.&nbsp; I created a Commandbar object called "CommandBars" (like the sample).&nbsp; I did see the UpdateEvent when i clicked the events button in the properties window and it showed up in the code behind file.&nbsp; I still don't know how to call the event though??<img src="https://forum.codejock.com/smileys/smiley5.gif" border="0">&nbsp; ]]>
   </description>
   <pubDate>Tue, 13 Mar 2007 19:58:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6631&amp;PID=21142&amp;title=disabling-button#21142</guid>
  </item> 
  <item>
   <title><![CDATA[Disabling button : Sorry, I should have followed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6631&amp;PID=21129&amp;title=disabling-button#21129</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1790">jcollier</a><br /><strong>Subject:</strong> 6631<br /><strong>Posted:</strong> 13 March 2007 at 11:33am<br /><br />Sorry, I should have followed up.&nbsp; When you want to disable or enable a button, all you have to do is change the value of the boolean variable and the update event will do the rest.]]>
   </description>
   <pubDate>Tue, 13 Mar 2007 11:33:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6631&amp;PID=21129&amp;title=disabling-button#21129</guid>
  </item> 
  <item>
   <title><![CDATA[Disabling button : Try declaring a global boolean...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6631&amp;PID=21128&amp;title=disabling-button#21128</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1790">jcollier</a><br /><strong>Subject:</strong> 6631<br /><strong>Posted:</strong> 13 March 2007 at 11:31am<br /><br />Try declaring a global boolean variable then in the Update event set enabled propert of the button to the variable.&nbsp; <br><br>In General Declarations:<br><br>dim blnBatchDetails as boolean<br>Const ID_BATCHDETAILS = 1<br><br>in CommandBars_Update event:<br><br>Select Case Control.ID<br>&nbsp;&nbsp;&nbsp; Case ID_BATCHDETAILS<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Control.Enabled = blnBatchDetails<br>End Select<br>]]>
   </description>
   <pubDate>Tue, 13 Mar 2007 11:31:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6631&amp;PID=21128&amp;title=disabling-button#21128</guid>
  </item> 
  <item>
   <title><![CDATA[Disabling button : Hi, I&amp;#039;m trying out this software...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6631&amp;PID=21124&amp;title=disabling-button#21124</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2840">Carter</a><br /><strong>Subject:</strong> 6631<br /><strong>Posted:</strong> 13 March 2007 at 8:28am<br /><br />Hi, I'm trying out this software and i seem to have most of it working.&nbsp; What i'm having problems with is being able to disable a button??&nbsp; I&nbsp; checked the tutorials and it only shows how to use "disabled icons" for disabled buttons.&nbsp; could someone helpe me out?<DIV>&nbsp;</DIV><DIV>Thanks</DIV>]]>
   </description>
   <pubDate>Tue, 13 Mar 2007 08:28:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6631&amp;PID=21124&amp;title=disabling-button#21124</guid>
  </item> 
 </channel>
</rss>