<?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 : Get first visible item on ListView</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Get first visible item on ListView]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 01:00:33 +0000</pubDate>
  <lastBuildDate>Wed, 02 Nov 2016 11:11:19 +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=23178</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[Get first visible item on ListView : hi :)i&amp;#039;m trying to get the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23178&amp;PID=75271&amp;title=get-first-visible-item-on-listview#75271</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9095">MohammadGH</a><br /><strong>Subject:</strong> 23178<br /><strong>Posted:</strong> 02 November 2016 at 11:11am<br /><br />hi :)<div>i'm trying &nbsp;to get the first visible item on list view (view property = 0) by using "getFisrtVisible" &nbsp;but it's always returns 1.</div><div>Here is a sample</div><div><br></div><div><br></div><div><div><font size="2">Private Sub Form_Load()</font></div><div><font size="2">Dim i As Integer</font></div><div><font size="2">For i = 1 To 100</font></div><div><font size="2">Dim item As ListViewItem</font></div><div><font size="2">Set item = ListView1.ListItems.Add(, , "test")</font></div><div><font size="2">item.SubItems(1) = CStr(i)</font></div><div><font size="2">Next</font></div><div><font size="2"><br></font></div><div><font size="2">ListView1.ListItems.item(50).EnsureVisible &nbsp; ' scrolling the listview to item 50</font></div><div><font size="2">i = ListView1.GetFirstVisible.Index&nbsp;</font></div><div><font size="2">End Sub</font></div></div><div><br></div><div><br></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 02 Nov 2016 11:11:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23178&amp;PID=75271&amp;title=get-first-visible-item-on-listview#75271</guid>
  </item> 
 </channel>
</rss>