<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Coffeehouse - Help needed - Visual Basic .NET</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Coffeehouse - Help needed - Visual Basic .NET</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Wed, 22 May 2013 08:03:45 GMT</pubDate>
	<lastBuildDate>Wed, 22 May 2013 08:03:45 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>10</c9:totalResults>
	<c9:pageCount>-10</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Coffeehouse - Help needed - Visual Basic .NET</title>
		<description><![CDATA[<p>Hi again, I have another problem that needs to be solved.<br>
How do you loop through a ListView and check if strName is the text of one item?<br>
<br>
Dim i As Integer<br>
For i =&nbsp;0 To ListView1.Items.Count<br>
&nbsp;&nbsp;&nbsp;If ListView1.Items(i).Text = strName Then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MsgBox &quot;Matches&quot;<br>
&nbsp;&nbsp;&nbsp;End If<br>
Next i<br>
<br>
Please help, I am getting mad about this.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/7534-Help-needed-Visual-Basic-NET/7534#7534</link>
		<pubDate>Thu, 20 May 2004 20:41:07 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/7534-Help-needed-Visual-Basic-NET/7534#7534</guid>
		<dc:creator>henningms</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/henningms/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Help needed - Visual Basic .NET</title>
		<description><![CDATA[<p>Have you tried: (untested)<br>
<br>
ListView1.Item(i).Value = strName<br>
or<br>
ListView1.Items(i) = strName<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/7534-Help-needed-Visual-Basic-NET/8843073925694a8c9f779dea011b2725#8843073925694a8c9f779dea011b2725</link>
		<pubDate>Thu, 20 May 2004 21:01:20 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/7534-Help-needed-Visual-Basic-NET/8843073925694a8c9f779dea011b2725#8843073925694a8c9f779dea011b2725</guid>
		<dc:creator>sbc</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/sbc/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Help needed - Visual Basic .NET</title>
		<description><![CDATA[<p>Viewer.Items(i).ToString</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/7534-Help-needed-Visual-Basic-NET/8faf775ac3ff4c38a6619dea011b274e#8faf775ac3ff4c38a6619dea011b274e</link>
		<pubDate>Thu, 20 May 2004 21:22:44 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/7534-Help-needed-Visual-Basic-NET/8faf775ac3ff4c38a6619dea011b274e#8faf775ac3ff4c38a6619dea011b274e</guid>
		<dc:creator>Manip</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Manip/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Help needed - Visual Basic .NET</title>
		<description><![CDATA[<p>The thing is:<br>
<br>
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in system.windows.forms.dll</p>
<p>Additional information: Specified argument was out of the range of valid values.<br>
<br>
When running this code:<br>
<br>
For i = 0 To ListView1.Items.Count<br>
&nbsp;&nbsp;&nbsp;If ListView1.Items(i).ToString = splNick(0) Then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ListView1.Items.RemoveAt(i)<br>
&nbsp;&nbsp;&nbsp;&nbsp;End If<br>
Next i</p>
<p>That problem haunts me, whatever I do it's there.<br>
</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/7534-Help-needed-Visual-Basic-NET/9af7b4b5f3554d1eac289dea011b277c#9af7b4b5f3554d1eac289dea011b277c</link>
		<pubDate>Thu, 20 May 2004 21:47:58 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/7534-Help-needed-Visual-Basic-NET/9af7b4b5f3554d1eac289dea011b277c#9af7b4b5f3554d1eac289dea011b277c</guid>
		<dc:creator>henningms</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/henningms/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Help needed - Visual Basic .NET</title>
		<description><![CDATA[<p>Thansk, it actually worked <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/7534-Help-needed-Visual-Basic-NET/dd1a3bc96c8f4c8cb5229dea011b27dd#dd1a3bc96c8f4c8cb5229dea011b27dd</link>
		<pubDate>Thu, 20 May 2004 22:50:14 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/7534-Help-needed-Visual-Basic-NET/dd1a3bc96c8f4c8cb5229dea011b27dd#dd1a3bc96c8f4c8cb5229dea011b27dd</guid>
		<dc:creator>henningms</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/henningms/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Help needed - Visual Basic .NET</title>
		<description><![CDATA[<p>lol! Try this:<br>
<br>
For i = 0 To (ListView1.Items.Count -1)<br>
<br>
I really can't believe I didn't pick this up the first time around.. I guess I was looking for something a little more complex.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/7534-Help-needed-Visual-Basic-NET/f096c37e6f6d42e098fc9dea011b27ab#f096c37e6f6d42e098fc9dea011b27ab</link>
		<pubDate>Thu, 20 May 2004 22:50:30 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/7534-Help-needed-Visual-Basic-NET/f096c37e6f6d42e098fc9dea011b27ab#f096c37e6f6d42e098fc9dea011b27ab</guid>
		<dc:creator>Manip</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Manip/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Help needed - Visual Basic .NET</title>
		<description><![CDATA[<p>Wouldn't this have been easier, to avoid using an index in the first place:<br>
<br>
For&nbsp;Each itm as ListItem In ListView1.Items<br>
&nbsp;&nbsp;&nbsp;If itm.Text = strName Then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MsgBox &quot;Matches&quot;<br>
&nbsp;&nbsp;&nbsp;End If<br>
Next itm<br>
<br>
Also, assuming you only want to get the first, and possibly only, match, you can insert in an:<br>
&nbsp; Exit For<br>
after the MsgBox.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/7534-Help-needed-Visual-Basic-NET/812fea388aec4d3f95c89dea011b280d#812fea388aec4d3f95c89dea011b280d</link>
		<pubDate>Fri, 21 May 2004 06:39:35 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/7534-Help-needed-Visual-Basic-NET/812fea388aec4d3f95c89dea011b280d#812fea388aec4d3f95c89dea011b280d</guid>
		<dc:creator>gregoryw</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/gregoryw/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Help needed - Visual Basic .NET</title>
		<description><![CDATA[<p>&nbsp;Thanks, It works without any problemems.<br>
<br>
I edited the code so if it finds strName it should delete it because the application-program reads from a text file and adds the the names listed there, but the in the text file the name is referred plenty of times so there's a whole list of the same name,
 but it won't work, I don't know if it's because there is also included SubItems:<br>
<br>
<br>
Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Phone&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Email<br>
<br>
Christoffer&nbsp;&nbsp;&nbsp;&nbsp;Nokia&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:christoffer@something.com">christoffer@something.com</a><br>
<br>
^ that name and with the same subitems is added more than ones because of the text file and I need to delete them but my code won't work:<br>
<br>
For i = 0 To (ListView1.Items.Count - 1)<br>
&nbsp;&nbsp;&nbsp;If ListView1.Items(i).ToString = strName Then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ListView1.Items.RemoveAt(i)<br>
&nbsp;&nbsp;&nbsp;End If<br>
Next i</p>
<p><br>
&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/7534-Help-needed-Visual-Basic-NET/e5152250539c4db8bc549dea011b2eb4#e5152250539c4db8bc549dea011b2eb4</link>
		<pubDate>Fri, 21 May 2004 10:11:05 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/7534-Help-needed-Visual-Basic-NET/e5152250539c4db8bc549dea011b2eb4#e5152250539c4db8bc549dea011b2eb4</guid>
		<dc:creator>henningms</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/henningms/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Help needed - Visual Basic .NET</title>
		<description><![CDATA[<p>Even simpler still:<br>
<br>
I like using the .IndexOf() method.<br>
<br>
Dim myItem As New ListViewItem(&quot;matchstring&quot;)<br>
<br>
ListView1.Items.RemoveAt(ListView1.Items.IndexOf(myItem))<br>
<br>
<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/7534-Help-needed-Visual-Basic-NET/4c977c1b03ae476388e59dea011b2f22#4c977c1b03ae476388e59dea011b2f22</link>
		<pubDate>Fri, 21 May 2004 20:05:03 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/7534-Help-needed-Visual-Basic-NET/4c977c1b03ae476388e59dea011b2f22#4c977c1b03ae476388e59dea011b2f22</guid>
		<dc:creator>gmiley</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/gmiley/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Help needed - Visual Basic .NET</title>
		<description><![CDATA[<p>I guess I should mention that it isn't good policy to do the above in-line like that, instead get the IndexOf value and check for &lt;&gt; -1 then remove.<br>
<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/7534-Help-needed-Visual-Basic-NET/4947b61197204727bb509dea011b3103#4947b61197204727bb509dea011b3103</link>
		<pubDate>Fri, 21 May 2004 20:08:18 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/7534-Help-needed-Visual-Basic-NET/4947b61197204727bb509dea011b3103#4947b61197204727bb509dea011b3103</guid>
		<dc:creator>gmiley</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/gmiley/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>