PC Review


Reply
Thread Tools Rate Thread

Scroll to last item in listview

 
 
David
Guest
Posts: n/a
 
      17th Feb 2005
Would someone mind explaining how I can get a listview to scroll down and
show the last item.

I am creating a history log that receives records from the serial port and I
need the most recent item to be shown while the older items are either push
up or down.

A highlighted last entry would be an added bonus also.

Thanks in advance

Regards

David


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      17th Feb 2005
David,

"David" <(E-Mail Removed)> schrieb:
> Would someone mind explaining how I can get a listview to scroll down and
> show the last item.
> [...]
> A highlighted last entry would be an added bonus also.


\\\
Dim lvi As ListViewItem = Me.ListView1.Items.Add(...)
lvi.Selected = True
lvi.EnsureVisible()
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ListView - Scroll to last item automatically =?Utf-8?B?ZGF2ZWJ5dGhlc2Vh?= Microsoft Dot NET Compact Framework 4 30th Jul 2012 07:35 AM
help coloring individual listview item instead of all listview item in visual c++ tonyck Webmaster / Programming 0 7th Jul 2006 11:06 AM
Highlighting a ListView item when the ListView does not have focus Rookie Microsoft C# .NET 3 13th Jul 2004 07:58 PM
How can I get a listview to auto scroll down to the last item entered (n/t) Jay Microsoft VB .NET 2 3rd Jun 2004 08:09 AM
Listview Item.Selected not populating Listview.SelectedItems collection Chris Adams Microsoft Dot NET Framework Forms 0 23rd Apr 2004 01:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:04 PM.