Scrolling For ListView.SelectedItem

by Christof 2. November 2009 23:12

If you selected an item in ListView control within your code, Not always the item will be visible to the user.
This sample code will show you, how it works:

Dim index as integer ' the scrollindex in the Listview

listView1.Items(index).Selected = true
listView1.Items(index).Focused = true
listView.TopItem = listView1.Items(index)

It works also with the Fancylistview from the Windows Home Server

Tags:

.net

Comments

11/3/2009 2:07:55 AM #

Andy

Hi Christof,

I added a new class to the css-file. Whenever you want to highlight something as code, just check "Use raw HTML editor" and add 'class="code"' inside the <p>-Tag containing the code. Just like <p class="code">sample code</p>
Hope you like it.

Andy Germany

Comments are closed

Powered by BlogEngine.NET 1.6.1.0
Theme by Andy Brosius

New Filehoster

What is your favorite Filehoster for Release 3.3.2




Show Results

Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar