473,414 Members | 1,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

How to scroll listview (details)

In the listview control I can set the highlighted item with

listview.focus()
listview.items(integerValue).selected=true

How do I programmatically scroll the pane of the details view to bring the
highlighted item into the window?

multiselect is false.
Nov 25 '07 #1
2 4601

"Rich Raffenetti" <rich@raffenetti_takethisout.comwrote in message
news:Oo**************@TK2MSFTNGP06.phx.gbl...
In the listview control I can set the highlighted item with

listview.focus()
listview.items(integerValue).selected=true

How do I programmatically scroll the pane of the details view to bring the
highlighted item into the window?

multiselect is false.

listview.selecteditem.EnsureVisible

Nov 25 '07 #2

"Lloyd Sheen" <a@b.cwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>
"Rich Raffenetti" <rich@raffenetti_takethisout.comwrote in message
news:Oo**************@TK2MSFTNGP06.phx.gbl...
>In the listview control I can set the highlighted item with

listview.focus()
listview.items(integerValue).selected=true

How do I programmatically scroll the pane of the details view to bring
the highlighted item into the window?

multiselect is false.


listview.selecteditem.EnsureVisible
Thanks. I found it in "help" to be

listview.EnsureVisible(integerValue)

EnsureVisible was the key. Works great!
Nov 26 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Stephen Lamb | last post by:
When I add several items, 4000, to a ListView and rapidly move the vertical scroll bar from top to bottom several times with the mouse over a period of about 20 seconds, the ListView control seems...
0
by: Bob Rock | last post by:
Hello, is there a way to first know when a listview displays horizontal and/or vertical scroll bar (maybe an event is fired???) and then to resize the listview to make them disappear??? How much...
4
by: John Dann | last post by:
I have a listview control on a simple vb.net form that's populated programmatically. It is set to scrollable and a scroll bar duly appears. However the scroll bar doesn't allow the bottom rows of...
0
by: alcurb | last post by:
I have a ListView control populated with 30 items. ListView height only allows you to see 20 rows at a time. I want to drag an item to the bottom of the list (to the last row), but ListView...
2
by: ssg31415926 | last post by:
I have a ListView (in Details view) with many ListViewItems. I programatically Select a particularl ListViewItem but it doesn't automatically scroll into view. Is there a way to do this?
6
by: Mike Johnson | last post by:
I have a ListView on a form, I'm displaying the items as a list. The Scroll is set to true. I want to know how can I set the scroll bar to Vertical?
0
by: Charles Law | last post by:
Can anyone suggest how to keep two ListView controls synchronised? It is a common scenario: two ListView controls, side-by-side, containing similar data. I want to scroll one control and have the...
5
by: Lord Zoltar | last post by:
Hello, I'm trying to force a listView to scroll to some location when a certain button is clicked on. I've found that the SendMessage function seems to be the choice way of doing it. Here's what...
4
by: Brian Gaze | last post by:
I have created a ListView control and have bound this to a datasource. Within the ItemTemplate of the ListView I have added another ListViewControl which is databound in the code behind. The idea...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.