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.2.5




Show Results

Tag Cloud

This will be shown to users with no Flash or Javascript.

Calendar

<<  July 2010  >>
MoTuWeThFrSaSu
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

View posts in large calendar