<?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 : TIP: XAML Markup &amp; Labels</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : XAML Snippets : TIP: XAML Markup &amp; Labels]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 00:14:38 +0000</pubDate>
  <lastBuildDate>Sat, 10 May 2008 18:56:16 +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=10582</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[TIP: XAML Markup &amp; Labels : Using markup with the CJ label...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10582&amp;PID=35072&amp;title=tip-xaml-markup-labels#35072</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 10582<br /><strong>Posted:</strong> 10 May 2008 at 6:56pm<br /><br />Using markup with the CJ label control is a great way to get rich presentation for your apps, but the XAML strings can get a bit unwieldy (due to their length and internal quotation marks in particular). Here's my solution:<BR><BR><OL><LI>Create the markup in the MarkupPad and then save the file to &lt;something&gt;.xaml <LI>Start VB6, and make sure the VB6 Resource Editor add-in is loaded in the Add-ins menu &gt; Add-in Manager <LI>If your project doesn't already have a resource file associated with it, click the Project menu, and then click Add New Resource File. <LI>Save the new resource file (for example, xaml.res).<BR><LI>In the Project Explorer window, under "Related Documents", double-click your resource file to open the Resource Editor. <LI>In the resource editor toolbar, click the "Add Custom Resource" icon. <LI>Navigate to the file you saved from the MarkupPad and select it. For the purpose of this example, we'll assume it is resource #101. <LI>Click the Save icon to save the resource file (important step!) <LI>Close the Resource Editor.</LI></OL>The markup is now available for use in your application. To load the resource into a CJ label:<BR><BR><table width="99%"><tr><td><pre class="BBcode"><BR>&nbsp;&nbsp; Me.Label1.Caption = StrConv(LoadResData(101, "CUSTOM"), vbUnicode)<BR></pre></td></tr></table><BR><BR>The StrConv call is required because the LoadResData function returns the bytes exactly as they are stored in the file (non-unicode), but VB6 requires unicode strings. <BR><BR>Anyway, this might be an obvious route to most of you, but I thought it could be helpful to others. Perhaps you've found a better solution that you can post here?<BR>]]>
   </description>
   <pubDate>Sat, 10 May 2008 18:56:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10582&amp;PID=35072&amp;title=tip-xaml-markup-labels#35072</guid>
  </item> 
 </channel>
</rss>