I have a listview control which displays all the files in a selected directory (very much like the Window's Explorer). I would like to add OLE drag functionality to this control but I am not sure how to do this. Ideally, I would like to use, in the OLEStartDrag event,
Data.SetData listview.SelectedItem.Key, vbCFFiles
since each item's key represents the path and name of the files. However, when I do this I receive an error message or the like. From the help file, I assume that this has something to do with a bstr variable(?) and the vbCFFiles format. Since I am new to VB, I am not sure what this is all about and how to specify the vbCFFiles format with the data that I have. If anyone knows how to do this and solve my OLE drag problem, please let me know. More points await.
Thanks in advance, showme