K
Ken Swanson
Hi,
In VB.NET, how do I determine what filename has been dropped into a ListView?
In my ListView's DragEnter() event, I am trying this, which according to the Help,
should work:
MyFilename = e.Data.GetData("FileName").ToString
I have also tried e.Data.GetData(DataFormats.Text) and GetData(System.String)...
neither work. I keep getting "System.String[]" back as the filename.
I have used e.GetData.GetFormats() to get a list of the formats, and I see the
following:
Shell IDList Array
DragImageBits
DragContext
Shell Object Offsets
InShellDragLoop
FileDrop
FileName
FileNameW
I have tried using all of them to no avail. Some return "System.IO.MemoryStream".
Those last two lead me to believe that I should be able to specify GetData("FileName")
to get the filename, but it doesn't work. What am I doing wrong?
Ken
In VB.NET, how do I determine what filename has been dropped into a ListView?
In my ListView's DragEnter() event, I am trying this, which according to the Help,
should work:
MyFilename = e.Data.GetData("FileName").ToString
I have also tried e.Data.GetData(DataFormats.Text) and GetData(System.String)...
neither work. I keep getting "System.String[]" back as the filename.
I have used e.GetData.GetFormats() to get a list of the formats, and I see the
following:
Shell IDList Array
DragImageBits
DragContext
Shell Object Offsets
InShellDragLoop
FileDrop
FileName
FileNameW
I have tried using all of them to no avail. Some return "System.IO.MemoryStream".
Those last two lead me to believe that I should be able to specify GetData("FileName")
to get the filename, but it doesn't work. What am I doing wrong?
Ken