Results 1 to 2 of 2

Thread: Listview question[resolved]

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2004
    Location
    Canada
    Posts
    47

    Question 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

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width