Results 1 to 2 of 2

Thread: Quick Listview Question

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 1999
    Location
    San Francisco, CA, USA
    Posts
    4

    Post

    One problem i have with the listview control is that when i have it in report view and add and item to it, it puts the item at the very top instead of the bottom. I was wondering if theres a way to make the listview put the item that is added down at the bottom of the listview. thanks for the help (by the way, i use VB5)

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    ListItem object's Add method has first parameter - Index that specifies the index of the ListItem to add:

    Code:
        Dim xItem As ListItem
            
        Set xItem = ListView1.ListItems.Add(ListView1.ListItems.Count + 1, , "MyItem")
    ------------------

    Serge

    Software Developer
    [email protected]
    [email protected]
    ICQ#: 51055819



    [This message has been edited by Serge (edited 11-18-1999).]

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