<?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 : Howto track MessageBar CloseButton</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Howto track MessageBar CloseButton]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 07:12:30 +0000</pubDate>
  <lastBuildDate>Fri, 17 Jul 2009 17:57:49 +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=14768</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[Howto track MessageBar CloseButton : Hi, I don&amp;#039;t think you can...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14768&amp;PID=51069&amp;title=howto-track-messagebar-closebutton#51069</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2368">cmm2006</a><br /><strong>Subject:</strong> 14768<br /><strong>Posted:</strong> 17 July 2009 at 5:57pm<br /><br />Hi,<DIV>I don't think you can assign any ID for the close button :(</DIV>]]>
   </description>
   <pubDate>Fri, 17 Jul 2009 17:57:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14768&amp;PID=51069&amp;title=howto-track-messagebar-closebutton#51069</guid>
  </item> 
  <item>
   <title><![CDATA[Howto track MessageBar CloseButton : Hi,  this will work for normal...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14768&amp;PID=51066&amp;title=howto-track-messagebar-closebutton#51066</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1941">Josef</a><br /><strong>Subject:</strong> 14768<br /><strong>Posted:</strong> 17 July 2009 at 2:40pm<br /><br />Hi,<br /><br />this will work for normal buttons, but not for the CloseButton added with .AddCloseButton (the small &#091;x&#093;-Button on the right)<br /><br />Can I assign an ID to this Close-Button too?<br /><br />Thank you,<br />Josef<br />]]>
   </description>
   <pubDate>Fri, 17 Jul 2009 14:40:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14768&amp;PID=51066&amp;title=howto-track-messagebar-closebutton#51066</guid>
  </item> 
  <item>
   <title><![CDATA[Howto track MessageBar CloseButton : Hi, You need to assign an ID...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14768&amp;PID=51061&amp;title=howto-track-messagebar-closebutton#51061</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2368">cmm2006</a><br /><strong>Subject:</strong> 14768<br /><strong>Posted:</strong> 17 July 2009 at 12:33pm<br /><br />Hi,<DIV>You need to assign an ID button to the close button (ID_MORE_BUTTON), the&nbsp; when you once you execute the commandbar, check and see if the button was clicked or not:</DIV><DIV>&nbsp;</DIV><DIV>Option Explicit</DIV><DIV>&nbsp;</DIV><DIV>Const ID_MORE_BUTTON=10000</DIV><DIV>&nbsp;</DIV><DIV>Private Sub CreateMessageBar()<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Messagebar.Visible = True<BR>&nbsp;&nbsp;&nbsp;&nbsp; MessageBar.AddButton 10000, "Informations...", "Show more options"<BR>&nbsp;&nbsp;&nbsp; Messagebar.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 Source='10000'/&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;&lt;Bold&gt;Warning: &lt;/Bold&gt;&lt;/TextBlock&gt;" &amp; _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;TextBlock Padding='10, 0, 0, 0' VerticalAlignment='Center'&gt;Your message here...&lt;/TextBlock&gt;" &amp; _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "&lt;/StackPanel&gt;"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>Private Sub CommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)<BR>&nbsp;&nbsp;&nbsp; Select Case Control.ID<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case ID_MORE_BUTTON: ' do whatever...</DIV><DIV>&nbsp;&nbsp;&nbsp; End Select</DIV><DIV>End Seub<BR></DIV>]]>
   </description>
   <pubDate>Fri, 17 Jul 2009 12:33:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14768&amp;PID=51061&amp;title=howto-track-messagebar-closebutton#51061</guid>
  </item> 
  <item>
   <title><![CDATA[Howto track MessageBar CloseButton : Hi,  how do I know if user clicked...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14768&amp;PID=51060&amp;title=howto-track-messagebar-closebutton#51060</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1941">Josef</a><br /><strong>Subject:</strong> 14768<br /><strong>Posted:</strong> 17 July 2009 at 12:24pm<br /><br />Hi,<br /><br />how do I know if user clicked CloseButton added with .AddCloseButton?<br /><br />Thank you,<br />Josef<br /><br />]]>
   </description>
   <pubDate>Fri, 17 Jul 2009 12:24:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14768&amp;PID=51060&amp;title=howto-track-messagebar-closebutton#51060</guid>
  </item> 
 </channel>
</rss>