to retrieve the currently selected item in a ListView control 
Author Message
 to retrieve the currently selected item in a ListView control

Hi all:

Anybody knowing how to retrieve the currently selected item in a
ListView control? (So that it can be selected again, after the list of
the records has been randomized.)

Nenad
http://www.*-*-*.com/ ~nasanovi



Wed, 18 Jun 1902 08:00:00 GMT  
 to retrieve the currently selected item in a ListView control
Try code like:

    Dim CurrentItem As ListItem

    Set CurrentItem = ListView.SelectedItem
    If (CurrentItem Is Nothing) Then MsgBox "No item selected"

    ...

    CurrentItem.Selected = True


Quote:
> Hi all:

> Anybody knowing how to retrieve the currently selected item in a
> ListView control? (So that it can be selected again, after the list of
> the records has been randomized.)

> Nenad
> http://public.srce.hr/~nasanovi



Wed, 18 Jun 1902 08:00:00 GMT  
 to retrieve the currently selected item in a ListView control
Hi all:

Anybody knowing how to retrieve the currently selected item in a
ListView control? (So that it can be selected again, after the list of
the records has been randomized.)

Nenad
http://public.srce.hr/~nasanovi



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. ListView control - Keeping selected items looking selected

2. Retrieve currently selected text under VBE

3. Retrieving message body text of currently selected message

4. Get Currently Selected Inbox Item

5. Find the currently selected item in a mail folder

6. Access currently selected email item

7. Save currently selected mail item

8. Find currently selected inbox item

9. Currently selected item in LV

10. jump listview to the hilight item (selected item)...

11. ListView Control - Removing selected items from the list

12. Why does the previous selected item in a ListView get selected for a short moment

 

 
Powered by phpBB® Forum Software