<?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 : Alternative code to add control</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Alternative code to add control]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 19:34:45 +0000</pubDate>
  <lastBuildDate>Tue, 17 Jun 2008 03:23: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=11045</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[Alternative code to add control : Another way if you want to set...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11045&amp;PID=36839&amp;title=alternative-code-to-add-control#36839</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3745">JantjeKeizer</a><br /><strong>Subject:</strong> 11045<br /><strong>Posted:</strong> 17 June 2008 at 3:23am<br /><br />Another way if you want to set more properties, but don't want to create another variable would be something like this:<br /><br /><table width="99%"><tr><td><pre class="BBcode"><br />With CB.ADd(xtpControlButton,ID_TEST,"My Caption")<br />  .TooltipText = "Press this Button"<br />  .DescriptionText = "This is the description"<br />  .IconID=250<br />End With<br /></pre></td></tr></table>]]>
   </description>
   <pubDate>Tue, 17 Jun 2008 03:23:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11045&amp;PID=36839&amp;title=alternative-code-to-add-control#36839</guid>
  </item> 
  <item>
   <title><![CDATA[Alternative code to add control : It works! Nice one.  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11045&amp;PID=36807&amp;title=alternative-code-to-add-control#36807</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 11045<br /><strong>Posted:</strong> 16 June 2008 at 6:23pm<br /><br />It works!&nbsp; Nice one.<img src="http://forum.codejock.com/smileys/smiley4.gif" border="0" align="absmiddle">]]>
   </description>
   <pubDate>Mon, 16 Jun 2008 18:23:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11045&amp;PID=36807&amp;title=alternative-code-to-add-control#36807</guid>
  </item> 
  <item>
   <title><![CDATA[Alternative code to add control : How about:CB.Add(xtpControlButton,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11045&amp;PID=36793&amp;title=alternative-code-to-add-control#36793</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2113">ijwelch</a><br /><strong>Subject:</strong> 11045<br /><strong>Posted:</strong> 16 June 2008 at 10:30am<br /><br />How about:<br><br>CB.Add(xtpControlButton, ID_TEST, "My Caption").ToolTipText = "Press this Button"<br><br><br>]]>
   </description>
   <pubDate>Mon, 16 Jun 2008 10:30:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11045&amp;PID=36793&amp;title=alternative-code-to-add-control#36793</guid>
  </item> 
  <item>
   <title><![CDATA[Alternative code to add control : Method 2 wont consume any extra...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11045&amp;PID=36789&amp;title=alternative-code-to-add-control#36789</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3745">JantjeKeizer</a><br /><strong>Subject:</strong> 11045<br /><strong>Posted:</strong> 16 June 2008 at 10:09am<br /><br />Method 2 wont consume any extra amount of memory.<br />The object exists anyway, and it's only a reference to the object. Method 2 is better. Method 1 simply doesn't make sense. It's like farbicating something then immediatly throw it in the water and then dive into the water to find it again.<br />Why do all that when the function returns the object you are looking for?]]>
   </description>
   <pubDate>Mon, 16 Jun 2008 10:09:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11045&amp;PID=36789&amp;title=alternative-code-to-add-control#36789</guid>
  </item> 
  <item>
   <title><![CDATA[Alternative code to add control : Considering efficiency, the second...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11045&amp;PID=36781&amp;title=alternative-code-to-add-control#36781</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3128">Bernie</a><br /><strong>Subject:</strong> 11045<br /><strong>Posted:</strong> 16 June 2008 at 6:46am<br /><br />Considering efficiency, the second method is better because CPU doesn't need to "look for" the control to assign its tooltiptext.<DIV>&nbsp;</DIV><DIV>But, variable that stores control info&nbsp;consumes memory.</DIV><DIV>&nbsp;</DIV><DIV>If you want to save memory, use the first method.</DIV><DIV>If you want to run faster, use the second one.</DIV><DIV>If your computer is "ALMIGHTY" (for example, 4GB RAM, 4 Cores CPU),</DIV><DIV>forget it!</DIV>]]>
   </description>
   <pubDate>Mon, 16 Jun 2008 06:46:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11045&amp;PID=36781&amp;title=alternative-code-to-add-control#36781</guid>
  </item> 
  <item>
   <title><![CDATA[Alternative code to add control : Both of the following seem to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11045&amp;PID=36776&amp;title=alternative-code-to-add-control#36776</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 11045<br /><strong>Posted:</strong> 16 June 2008 at 3:48am<br /><br />Both of the following seem to work OK<br><br>1.&nbsp;&nbsp;&nbsp; CB.Add xtpControlButton, ID_TEST, "My Caption"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tmpControl = CB.FindControl(, ID_TEST)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tmpcontrol.ToolTipText = "Press this Button"<br><br><br>2.&nbsp;&nbsp;&nbsp; set tmpControl = CB.Add(xtpControlButton, ID_TEST, "My Caption")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tmpcontrol.ToolTipText = "Press this Button"<br><br><br>Is there any different result?<br>Is method 2 better (less code and faster operation?)<br><br><br>]]>
   </description>
   <pubDate>Mon, 16 Jun 2008 03:48:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11045&amp;PID=36776&amp;title=alternative-code-to-add-control#36776</guid>
  </item> 
 </channel>
</rss>