|
-
Jan 16th, 2007, 05:33 PM
#1
Thread Starter
Member
Listview question[resolved]
I was trying to show the end of the listview whenever a new item is added but I couldn't figure it out. I could select the item by setting the ListviewItem selected property to true, and then Listview.Selected() but it does not bring the item into view. Help Pls.
I have tried it with a listbox and it was just a matter of using the SelectedIndex property. Listview seems different.
Last edited by OctaneChicken; Jan 16th, 2007 at 06:22 PM.
Dave 
-
Jan 16th, 2007, 06:12 PM
#2
Re: Listview question
If you want to do something with or to a class the first order of business should ALWAYS be to go to the MSDN library and read the help topic for the class and its member listing. Doing so would have led you to the EnsureVisible method, which is described like so:
Ensures that the specified item is visible within the control, scrolling the contents of the control if necessary.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|