<?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 : ItemData for Listbox</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : ItemData for Listbox]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 07:57:34 +0000</pubDate>
  <lastBuildDate>Tue, 14 Apr 2009 00:47:59 +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=13995</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[ItemData for Listbox : Hi,  .NET renames it to set_...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13995&amp;PID=47840&amp;title=itemdata-for-listbox#47840</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13995<br /><strong>Posted:</strong> 14 April 2009 at 12:47am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>.NET renames it to <FONT color=#010001 size=2>set_ItemData:</FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT color=#010001 size=2><FONT color=#010001 size=2>axListBox1</FONT></FONT><FONT size=2>.</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>set_ItemData</FONT></FONT><FONT size=2>(...)</DIV></FONT>]]>
   </description>
   <pubDate>Tue, 14 Apr 2009 00:47:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13995&amp;PID=47840&amp;title=itemdata-for-listbox#47840</guid>
  </item> 
  <item>
   <title><![CDATA[ItemData for Listbox : I see the ItemData property in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13995&amp;PID=47829&amp;title=itemdata-for-listbox#47829</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 13995<br /><strong>Posted:</strong> 13 April 2009 at 8:54pm<br /><br />I see the ItemData property in VB6 with version 13.0.0. What version of the suite controls are you using?]]>
   </description>
   <pubDate>Mon, 13 Apr 2009 20:54:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13995&amp;PID=47829&amp;title=itemdata-for-listbox#47829</guid>
  </item> 
  <item>
   <title><![CDATA[ItemData for Listbox : In c# and with ListBox the ItemData...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13995&amp;PID=47820&amp;title=itemdata-for-listbox#47820</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=729">tobi</a><br /><strong>Subject:</strong> 13995<br /><strong>Posted:</strong> 13 April 2009 at 11:42am<br /><br />In c# and with ListBox the ItemData method is not listed in context menu ???]]>
   </description>
   <pubDate>Mon, 13 Apr 2009 11:42:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13995&amp;PID=47820&amp;title=itemdata-for-listbox#47820</guid>
  </item> 
  <item>
   <title><![CDATA[ItemData for Listbox : You should use the NewIndex property...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13995&amp;PID=47817&amp;title=itemdata-for-listbox#47817</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 13995<br /><strong>Posted:</strong> 13 April 2009 at 10:30am<br /><br />You should use the NewIndex property for the ItemData index parameter immediately after you add the new item using the AddItem method. In VB6 your code would look like this:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>For i = 0 to 9<br>&nbsp;&nbsp; Me.ComboBox1.AddItem "Test" &amp; i<br>&nbsp;&nbsp; Me.ComboBox1.ItemData(Me.ComboBox1.NewIndex) = i<br>Next i<br></pre></td></tr></table><br><br>You should be able to infer the C# code from that. (This code sets the ItemData property for each newly added item to the value in the counter "i", you wuold change that to be your database index #).<br>]]>
   </description>
   <pubDate>Mon, 13 Apr 2009 10:30:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13995&amp;PID=47817&amp;title=itemdata-for-listbox#47817</guid>
  </item> 
  <item>
   <title><![CDATA[ItemData for Listbox : Hi,in my c# application I want...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13995&amp;PID=47815&amp;title=itemdata-for-listbox#47815</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=729">tobi</a><br /><strong>Subject:</strong> 13995<br /><strong>Posted:</strong> 13 April 2009 at 10:21am<br /><br />Hi,<br><br>in my c# application I want to add items to the CJ Listbox and then set something like Tag or ItemData to the<br>corresponding database ID ...<br><br>I think ItemData is the right thing, but how can I set it after or while adding a new item ?<br><br>Thanks<br>]]>
   </description>
   <pubDate>Mon, 13 Apr 2009 10:21:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13995&amp;PID=47815&amp;title=itemdata-for-listbox#47815</guid>
  </item> 
 </channel>
</rss>