CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 1999
    Posts
    13

    how to select an item in a listview dinamiquely?

    Hello,
    I would want to select an item dinamiquely (the item become blue)in a listview, as if someone click on the item.
    thank you for yours responses.
    Philippe gendreau


  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: how to select an item in a listview dinamiquely?

    Try :


    set ListView1.SelectedItem = ListView1.ListItems(IndexOfItemYouWantSelected)




    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

  3. #3
    Join Date
    Dec 1999
    Posts
    13

    Re: how to select an item in a listview dinamiquely?

    hello,

    thank you for your response.
    But i had tried this but nothing happened. Perhaps
    the listview have a property which say that you
    can't selectionned an item. But i don't know which.
    i can't make an item ghosted too.

    thank you a lot for your help.
    Best regards
    Philippe Gendreau

    PS:sorry for my bad english


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

Featured