Thanks Sergey,
It works fine for to delete the file.
but I have another question for this line of code to retrieve an icon from
(Ole ImageListctrl properties in Images - index 1) from another ActiveX control.
Always give the first icon ( index 1) for word.doc even my excel.xls (index 2) was attached to the Listview1, the same word icon for excel.xls
How to code to get the right icon as variant for each file attached ?
for me, I put 1 that is why, get 1 word.doc by default.
TIA for anybody who can help me out.
thisform.listView1.ListItems.Add(index as variant,key as variant,text as variant,icon as variant,smallicon as variant) as lListItem
loItem1 =thisForm.listview1.listItems.Add(,,m.myfile,1,1)