Results 1 to 4 of 4

Thread: How can I insert a line in a ListView ?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Location
    Belgium
    Posts
    77

    Smile

    How can I insert a line in a ListView ?

    Is it possible to make it without shift all the lines after where I would like to insert the new line ?
    By using SendMessage ?

    Thanks
    KWell

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    How can I insert a line in a ListView ?
    ListView1.ListItems.Add

    Is it possible to make it without shift all the lines after where I would like to insert the new line ?
    Not that I know of ;-)

    By using SendMessage ?
    What does SendMessage have to do with it?????


  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Location
    Belgium
    Posts
    77

    Wink

    Thanks Gen-X
    But this function insert a line at the end of the list and I would like to insert a line in the list.

    SendMessage is a API function that make a lot of thing, but I don't know the syntax (and the parameters) to use it.
    KWell

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Location
    Belgium
    Posts
    77

    Talking

    I find a solution to my problem. And the solution is ...
    ListView1.ListItems.Add idx
    Where idx is the index number where whe want to insert the line.
    In fact, the update of all the index number in the listview is automatic. On to delete and to add item to the list.

    That was so simple that I not see it immediately!
    KWell

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