Hi "Pankaj"
Try adding this "lvwFiles.setfocus" at the bottom of your code
- Dhodie
"Pankaj" wrote :
Subject: listview programmatically listitem selection
From: "Pankaj" <pa_inbox@h...>
Date: Mon, 16 Dec 2002 09:36:23 -0800
X-Message-Number: 9
Hi All:
I am using following code to programmatically select a listitem returned
from FindItem method.
1 Set itmX = lvwFiles.FindItem(txtPathName, valuecol, , lvwPartial)
2 Set lvwFiles.SelectedItem = itmX
3 lvwFiles.ListItems(itmX.Index).Selected = True
In debug mode I can watch the value of lvwFiles.selecteditem.text represents
the current setted item
but in GUI it doesn't show the Selected Item as a highlighted one.
I couldn't find any other methods/properties which I can Use to achieve this
beside SelectedItem, Selected
Any Pointers...
TIA
Pankaj