<?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 : onClick Disable a CommandBars ToolBar Button</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : onClick Disable a CommandBars ToolBar Button]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 06:34:55 +0000</pubDate>
  <lastBuildDate>Sun, 10 Sep 2006 08:04:24 +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=4981</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[onClick Disable a CommandBars ToolBar Button :  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4981&amp;PID=15584&amp;title=onclick-disable-a-commandbars-toolbar-button#15584</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2259">daveED</a><br /><strong>Subject:</strong> 4981<br /><strong>Posted:</strong> 10 September 2006 at 8:04am<br /><br /><img src="https://forum.codejock.com/smileys/smiley2.gif" border="0">]]>
   </description>
   <pubDate>Sun, 10 Sep 2006 08:04:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4981&amp;PID=15584&amp;title=onclick-disable-a-commandbars-toolbar-button#15584</guid>
  </item> 
  <item>
   <title><![CDATA[onClick Disable a CommandBars ToolBar Button : FindControl is the worst solution....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4981&amp;PID=15533&amp;title=onclick-disable-a-commandbars-toolbar-button#15533</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4981<br /><strong>Posted:</strong> 07 September 2006 at 2:34pm<br /><br />FindControl is the worst solution. User can move control or delete, or copy to another toolbar.<DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>I like 2 solutions</DIV><DIV>1. create variable (dim State as Boolean) and switch it in Execute.</DIV><DIV>&nbsp;</DIV><DIV>or</DIV><DIV>&nbsp;</DIV><DIV>2. use Actions.</DIV>]]>
   </description>
   <pubDate>Thu, 07 Sep 2006 14:34:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4981&amp;PID=15533&amp;title=onclick-disable-a-commandbars-toolbar-button#15533</guid>
  </item> 
  <item>
   <title><![CDATA[onClick Disable a CommandBars ToolBar Button : Try this:Select Case Control.Id ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4981&amp;PID=15521&amp;title=onclick-disable-a-commandbars-toolbar-button#15521</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1790">jcollier</a><br /><strong>Subject:</strong> 4981<br /><strong>Posted:</strong> 07 September 2006 at 11:10am<br /><br />Try this:<br><br><font size="1">Select Case Control.Id<br></font><div><font size="1">&nbsp;&nbsp;&nbsp; Case <font face="Courier New">ID_OF_BUTTON_USER_CLICKED:<br>&nbsp;&nbsp;&nbsp; CommandBars.FindControl(, ID_OF_BUTTON_TO_DISABLE, , True).Enabled = False<br></font></font></div><div>&nbsp;</div><div><font size="1">End Select</font></div><br>]]>
   </description>
   <pubDate>Thu, 07 Sep 2006 11:10:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4981&amp;PID=15521&amp;title=onclick-disable-a-commandbars-toolbar-button#15521</guid>
  </item> 
  <item>
   <title><![CDATA[onClick Disable a CommandBars ToolBar Button : Hi,    Ineed to disable a Toolbar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4981&amp;PID=15501&amp;title=onclick-disable-a-commandbars-toolbar-button#15501</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2259">daveED</a><br /><strong>Subject:</strong> 4981<br /><strong>Posted:</strong> 06 September 2006 at 8:34am<br /><br />Hi, <DIV></DIV><DIV>&nbsp;</DIV><DIV>I&nbsp;need to disable a Toolbar button when i fire a event</DIV><DIV>from a command Button how do i capture this event?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img src="http://daveed.50webs.com/disabletbutt&#111;n.jpg" border="0"></DIV><DIV>&nbsp;</DIV><DIV><FONT size=1><strong>A way i have using is this and works but is there a easer way?&nbsp;</strong></FONT></DIV><DIV><FONT size=1></FONT>&nbsp;</DIV><DIV><FONT size=1>Private Sub CommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)<BR><BR>Select Case Control.Id<BR></FONT></DIV><DIV><FONT size=1>Case <FONT face="Courier New">ID_VOLUME_CONTROL: hiddenButton.Enabled = False</FONT></FONT></DIV><DIV><FONT size=1></FONT>&nbsp;</DIV><DIV><FONT size=1>End Select</FONT></DIV><DIV><FONT size=1></FONT>&nbsp;</DIV><DIV><FONT size=1></FONT>&nbsp;</DIV><DIV><DIV><FONT size=1>Private Sub CommandBars_Update(ByVal Control As XtremeCommandBars.ICommandBarControl)</FONT></DIV><DIV><FONT size=1>&nbsp;</FONT></DIV><DIV><FONT size=1>&nbsp;On Error Resume Next<BR>&nbsp;Select Case Control.Id</FONT></DIV><DIV><FONT size=1></FONT>&nbsp;</DIV><DIV><FONT face="Courier New" size=1>Case ID_VOLUME_CONTROL:</FONT></DIV><DIV><FONT size=1></FONT>&nbsp;</DIV><DIV><FONT size=1>If hiddenButton.Enabled = False Then</FONT></DIV><DIV><FONT size=1>Control.Enabled = False<BR>Else<BR>Control.Enabled = True<BR>End If</FONT></DIV><DIV><FONT size=1></FONT>&nbsp;</DIV><DIV><FONT size=1>End&nbsp; Select</FONT></DIV></DIV><DIV>-----------------------------------------------</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><strong></strong>&nbsp;</DIV><DIV><strong>Is there a easyer way? eg</strong></DIV><DIV>&nbsp;</DIV><DIV>------------------------------------------------</DIV><DIV>&nbsp;</DIV><DIV>Private Sub disableSpeaker_Click()</DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New">CommandBars.Actions(ID_VOLUME_CONTROL).Enabled = <FONT ="keyword">False</FONT></FONT></DIV><DIV>&nbsp;</DIV><DIV>End Sub</DIV><DIV>--------------------------------------------</DIV><DIV>eg, Example</DIV><DIV>--------------------------------------------</DIV><DIV>Private Sub CommandBars_Update(ByVal Control As XtremeCommandBars.ICommandBarControl)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;On Error Resume Next<BR>&nbsp;Select Case Control.Id</DIV><DIV>&nbsp;</DIV><DIV>Case ID_VOLUME_CONTROL: </DIV><DIV>&nbsp;</DIV><DIV>If Text2.Text = "" Then</DIV><DIV>&nbsp;</DIV><DIV>Control.Enabled = True</DIV><DIV>Else</DIV><DIV><strong>Control.Enabled = False</strong></DIV><DIV>End IF</DIV><DIV>&nbsp;</DIV><DIV>End Select</DIV><DIV>End Sub</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Regards,</DIV><DIV>Dave</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 06 Sep 2006 08:34:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4981&amp;PID=15501&amp;title=onclick-disable-a-commandbars-toolbar-button#15501</guid>
  </item> 
 </channel>
</rss>