<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Visual Basic .NET</title><link>http://forums.asp.net/36.aspx</link><description>Discussions/Questions about the Visual Basic .NET language. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=14&amp;c=23" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Value cannot be null.parameter name:item</title><link>http://forums.asp.net/thread/3273618.aspx</link><pubDate>Fri, 03 Jul 2009 13:47:28 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273618</guid><dc:creator>amit.jain</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273618.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3273618</wfw:commentRss><description>&lt;p&gt;Try this code &lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;Private strName As String() = New String(3) {}
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
    strName(0) = &amp;quot;amit&amp;quot;
    strName(1) = &amp;quot;jain&amp;quot;
    strName(2) = &amp;quot;amitjain&amp;quot;
    strName(3) = &amp;quot;amiTjaiN&amp;quot;
End Sub
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs)
    For Each strTest As String In strName
        ListBox1.Items.Add(strTest)
    Next
End Sub
&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Value cannot be null.parameter name:item</title><link>http://forums.asp.net/thread/3272975.aspx</link><pubDate>Fri, 03 Jul 2009 07:50:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3272975</guid><dc:creator>nandhini.s</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3272975.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3272975</wfw:commentRss><description>&lt;p&gt;hi al..&lt;/p&gt;&lt;p&gt;am a beginner for vb.net, i was using the WROX book to start of with vb.net.In that i had an example code which i tried to work out but i got an error like this one ,am jus creating an array and adding it into the list&lt;/p&gt;&lt;p&gt;value cannot be null.Parameter name:item&lt;/p&gt;&lt;p&gt;plz do help me with ur replies&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;dim stname(4) as string&lt;/p&gt;&lt;p&gt;private sub form1_load() me.load&lt;/p&gt;&lt;p&gt;stname(0)=&amp;quot;naresh&amp;quot;&lt;/p&gt;&lt;p&gt;stname(0)=&amp;quot;ezhil&amp;quot;&lt;/p&gt;&lt;p&gt;stname(0)=&amp;quot;balaji&amp;quot;&lt;/p&gt;&lt;p&gt;stname(0)=&amp;quot;srinath&amp;quot;&lt;/p&gt;&lt;p&gt;end sub&lt;/p&gt;&lt;p&gt;private sub btn_click()&lt;/p&gt;&lt;p&gt;for each n as string in stname&lt;/p&gt;&lt;p&gt;lstData.Items.Add(n) &amp;lt;-------------------- at tis point am getting the error&lt;/p&gt;&lt;p&gt;next&lt;/p&gt;&lt;p&gt;end sub&lt;/p&gt;</description></item></channel></rss>