Click to See Complete Forum and Search --> : how to select an item in a listview dinamiquely?


PGendreau
December 22nd, 1999, 12:21 PM
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

Chris Eastwood
December 22nd, 1999, 02:39 PM
Try :


set ListView1.SelectedItem = ListView1.ListItems(IndexOfItemYouWantSelected)




Chris Eastwood

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

PGendreau
December 23rd, 1999, 05:53 AM
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