<?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 : ComboBox with Markup</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : ComboBox with Markup]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 09:43:22 +0000</pubDate>
  <lastBuildDate>Mon, 02 Feb 2009 17:37:10 +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=13318</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[ComboBox with Markup : I have run into an issue with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13318&amp;PID=45089&amp;title=combobox-with-markup#45089</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1368">ScottW</a><br /><strong>Subject:</strong> 13318<br /><strong>Posted:</strong> 02 February 2009 at 5:37pm<br /><br />I have run into an issue with the ComboBox control that I hope there is a way to fix. When using markup with combodropdownlist style, selecting works great and shows the markup in the text box part. However, in combodropdown mode, you see the markup in the text box after you select an item. Yuck! I tried to use the click event to change the ComboBox text property to the text without the markup, but it only works the first time, after that it shows the markup even after I change the property.<br><br>If you make a VB6 Form with a single ComboBox control on it, you can paste in this form code to duplicate:<br><br><font face="Courier New, Courier, mono">Option Explicit<br><br>Private Sub ComboBox1_Click()<br><br>Debug.Print "Click", ComboBox1.Text,<br>&nbsp;&nbsp;&nbsp; ComboBox1.Text = Mid$(ComboBox1.Text, 12, 6)<br>Debug.Print , ComboBox1.Text<br><br>End Sub<br><br>Private Sub Form_Load()<br><br>Debug.Print "--------------------"<br><br>&nbsp;&nbsp;&nbsp; With ComboBox1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .EnableMarkup = True<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "&lt;TextBlock&gt;Item 1&lt;/TextBlock&gt;"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "&lt;TextBlock&gt;Item 2&lt;/TextBlock&gt;"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "&lt;TextBlock&gt;Item 3&lt;/TextBlock&gt;"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ListIndex = 1<br>&nbsp;&nbsp;&nbsp; End With<br><br>End Sub<br></font><br>]]>
   </description>
   <pubDate>Mon, 02 Feb 2009 17:37:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13318&amp;PID=45089&amp;title=combobox-with-markup#45089</guid>
  </item> 
 </channel>
</rss>