<?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 : Problem with MessageBar icon</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Problem with MessageBar icon]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 08:53:44 +0000</pubDate>
  <lastBuildDate>Wed, 21 May 2008 05:02:35 +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=10490</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[Problem with MessageBar icon : Usingmethod AddIcons means twice...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10490&amp;PID=35522&amp;title=problem-with-messagebar-icon#35522</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3933">enjay</a><br /><strong>Subject:</strong> 10490<br /><strong>Posted:</strong> 21 May 2008 at 5:02am<br /><br />Using&nbsp;method AddIcons means twice the amount of memory usage, right ? (e.g. ImageManager1 already have 100 images)&nbsp;]]>
   </description>
   <pubDate>Wed, 21 May 2008 05:02:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10490&amp;PID=35522&amp;title=problem-with-messagebar-icon#35522</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with MessageBar icon : Hi,  try   CommandBars1.GlobalSettings.Icons.AddIcons...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10490&amp;PID=35506&amp;title=problem-with-messagebar-icon#35506</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10490<br /><strong>Posted:</strong> 21 May 2008 at 1:29am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>try </DIV><DIV>&nbsp;</DIV><DIV>CommandBars1.GlobalSettings.Icons.AddIcons Me.ImageManager1.Icons<BR></DIV>]]>
   </description>
   <pubDate>Wed, 21 May 2008 01:29:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10490&amp;PID=35506&amp;title=problem-with-messagebar-icon#35506</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with MessageBar icon : I&amp;#039;m not convinced !     Set...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10490&amp;PID=35498&amp;title=problem-with-messagebar-icon#35498</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3933">enjay</a><br /><strong>Subject:</strong> 10490<br /><strong>Posted:</strong> 20 May 2008 at 8:25pm<br /><br />I'm not convinced ! <DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>Set CommandBars1.GlobalSettings.Icons = Me.ImageManager1.Icons</DIV><DIV></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>doesn't work, so reusing ImageManager1 is not possible. I don't want to use file I/O for images at runtime in any cases.</DIV><DIV>&nbsp;</DIV><DIV>Will there be a fix for this ?&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>/EDIT</DIV><DIV>&nbsp;</DIV><DIV>The evidence:</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>Dim ID_IMAGE As Long</DIV><DIV>Private Sub Form_Load()<BR>&nbsp;&nbsp;&nbsp; ID_IMAGE = 200<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; ' --- following line makes trouble in Markup Image<BR>&nbsp;&nbsp;&nbsp; 'Set CommandBars1.GlobalSettings.Icons = Me.ImageManager1.Icons<BR>&nbsp;&nbsp;&nbsp; ' to reproduce:<BR>&nbsp;&nbsp;&nbsp; ' 1) uncomment the above line<BR>&nbsp;&nbsp;&nbsp; ' 2) save project and close<BR>&nbsp;&nbsp;&nbsp; ' 3) reload project and start<BR>&nbsp;&nbsp;&nbsp; ' ---<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; CommandBars1.GlobalSettings.Icons.RemoveAll<BR>&nbsp;&nbsp;&nbsp; CommandBars1.GlobalSettings.Icons.LoadIcon App.Path &amp; "\info.ico", ID_IMAGE, xtpImageNormal<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; With CommandBars1.MessageBar<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Message = _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;StackPanel Orientation='Horizontal'&gt;" &amp; _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Image Height='16' Source='" &amp; CStr(ID_IMAGE) &amp; "'/&gt;" &amp; _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;TextBlock Padding='3, 0, 0, 0' VerticalAlignment='Center'&gt;ID_IMAGE=" &amp; ID_IMAGE &amp; "&lt;/TextBlock&gt;" &amp; _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;/StackPanel&gt;"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Visible = True<BR>&nbsp;&nbsp;&nbsp; End With<BR>End Sub</DIV><DIV></pre></td></tr></table></DIV>]]>
   </description>
   <pubDate>Tue, 20 May 2008 20:25:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10490&amp;PID=35498&amp;title=problem-with-messagebar-icon#35498</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with MessageBar icon : Problem solved. I had to set GlobalSettings.Icons...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10490&amp;PID=34804&amp;title=problem-with-messagebar-icon#34804</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=841">Fabian</a><br /><strong>Subject:</strong> 10490<br /><strong>Posted:</strong> 06 May 2008 at 11:38am<br /><br />Problem solved. I had to set GlobalSettings.Icons each time I load a new commandbar file (.XCB).<DIV>&nbsp;</DIV><DIV>Thanks</DIV>]]>
   </description>
   <pubDate>Tue, 06 May 2008 11:38:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10490&amp;PID=34804&amp;title=problem-with-messagebar-icon#34804</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with MessageBar icon : I simply change your .LoadIcon...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10490&amp;PID=34782&amp;title=problem-with-messagebar-icon#34782</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=841">Fabian</a><br /><strong>Subject:</strong> 10490<br /><strong>Posted:</strong> 06 May 2008 at 8:02am<br /><br />I simply change your .LoadIcon line with that mentioned in my last post. I need to load the icons from ImageManager because we won't load icons at run time. <DIV>&nbsp;</DIV><DIV>Thanks for looking at it</DIV>]]>
   </description>
   <pubDate>Tue, 06 May 2008 08:02:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10490&amp;PID=34782&amp;title=problem-with-messagebar-icon#34782</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with MessageBar icon : Hi,  This will work:  Const...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10490&amp;PID=34761&amp;title=problem-with-messagebar-icon#34761</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10490<br /><strong>Posted:</strong> 06 May 2008 at 3:06am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>This will work:</DIV><DIV>&nbsp;</DIV><DIV>Const ID_IMAGE = 1</DIV><DIV>&nbsp;</DIV><DIV>CommandBars.GlobalSettings.Icons.RemoveAll<BR>CommandBars.GlobalSettings.Icons.LoadIcon &lt;image path&gt;, ID_IMAGE, xtpImageNormal<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; MessageBar.Message = _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;Image Source= <strong><FONT size=2><FONT color=#ff0000>'</FONT><FONT color=#00ffff>"</FONT></FONT></strong> &amp; ID_IMAGE &amp; <strong><FONT size=2><FONT color=#00ffff>"</FONT><FONT color=#ff0000>'</FONT></FONT></strong>/&gt;"</DIV><DIV>&nbsp;</DIV><DIV>or </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; MessageBar.Message = _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;Image Source= <FONT color=#ff0000 size=2><strong>'</strong></FONT>1<FONT color=#ff0000 size=2><strong>'</strong></FONT>/&gt;"</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2><strong>Oleg, why can't&nbsp;ID_IMAGE replaced with a string&nbsp;? </strong></FONT></DIV><DIV>&nbsp;</DIV><DIV><BR>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 06 May 2008 03:06:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10490&amp;PID=34761&amp;title=problem-with-messagebar-icon#34761</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with MessageBar icon : Hi, Attach your changes. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10490&amp;PID=34747&amp;title=problem-with-messagebar-icon#34747</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10490<br /><strong>Posted:</strong> 06 May 2008 at 1:59am<br /><br />Hi,<DIV>Attach your changes.</DIV>]]>
   </description>
   <pubDate>Tue, 06 May 2008 01:59:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10490&amp;PID=34747&amp;title=problem-with-messagebar-icon#34747</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with MessageBar icon : Sorry Oleg -I changed your RibbonBar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10490&amp;PID=34718&amp;title=problem-with-messagebar-icon#34718</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=841">Fabian</a><br /><strong>Subject:</strong> 10490<br /><strong>Posted:</strong> 05 May 2008 at 11:09am<br /><br />Sorry Oleg -&nbsp;I changed your RibbonBar sample as follows<DIV>&nbsp;</DIV><DIV>I added an ImageManager and supply an 16x16 icon (XP/alpha, ID=32988)</DIV><DIV>&nbsp;</DIV><DIV>CommandBars.GlobalSettings.Icons.AddIcons Imagemanager1.Icons</DIV><DIV>&nbsp;</DIV><DIV>Silly enough - I see still the old warning icon from the original sample. I tried also to CommandBars.GlobalSettings.Icons.RemoveAll - nothing helps...</DIV><DIV>&nbsp;</DIV><DIV>any idea?</DIV>]]>
   </description>
   <pubDate>Mon, 05 May 2008 11:09:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10490&amp;PID=34718&amp;title=problem-with-messagebar-icon#34718</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with MessageBar icon : Hi,  See Markup caption - &amp;#034;&amp;lt;Image...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10490&amp;PID=34680&amp;title=problem-with-messagebar-icon#34680</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10490<br /><strong>Posted:</strong> 05 May 2008 at 2:17am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>See Markup caption - "&lt;Image Source='32988'/&gt;" it used '32988' - just replace it for id you need.</DIV><DIV>Problem only that Markup use Global ImageManager:</DIV><DIV>&nbsp;</DIV><DIV>CommandBars.GlobalSettings.Icons.LoadIcon App.Path &amp; "\res\Warning.ico", 32988, xtpImageNormal<BR></DIV>]]>
   </description>
   <pubDate>Mon, 05 May 2008 02:17:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10490&amp;PID=34680&amp;title=problem-with-messagebar-icon#34680</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with MessageBar icon : Hi  I tried the messageBar with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10490&amp;PID=34646&amp;title=problem-with-messagebar-icon#34646</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=841">Fabian</a><br /><strong>Subject:</strong> 10490<br /><strong>Posted:</strong> 04 May 2008 at 10:12am<br /><br />Hi<DIV>&nbsp;</DIV><DIV>I tried the messageBar with the CJ sample. It works as long as I use the ID 32988 for the Warning-image. Any other ID doesn't work for me?!</DIV><DIV>&nbsp;</DIV><DIV>In my own code I load an XCB file and then add all icons from a prepopulated ImageManager control with:</DIV><DIV>&nbsp;</DIV><DIV>CommandBars1.Icons.AddIcons ImageManager1.Icons</DIV><DIV>&nbsp;</DIV><DIV>If I try using an icon from this collection - ID 32988 or not - I never see any image in the MessageBar (Text and Buttons are OK). BTW: all icons are XP-icons with alpha channels.</DIV><DIV>&nbsp;</DIV><DIV>Using: VB6 checked under Win2000 and WinVista</DIV><DIV>&nbsp;</DIV><DIV>Any Idea???</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance</DIV>]]>
   </description>
   <pubDate>Sun, 04 May 2008 10:12:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10490&amp;PID=34646&amp;title=problem-with-messagebar-icon#34646</guid>
  </item> 
 </channel>
</rss>