I am trying to copy a file onto the clipboard but I am not having any
success. Perhaps someone can help me out.
I have the full file name from my application and to put it onto the
clipboard I have tried:
Clipboard.SetDa taObject(New DataObject(Data Formats.FileDro p, myFileName),
True)
where myFileName is a string and contains the full path name of the file.
When I retrieve a 'FileDrop' type data from the clipboard the object is an
array so I also tried:
Dim myFileData as String() = {myFileName}
Clipboard.SetDa taObject(New DataObject(Data Formats.FileDro p, myFileData),
True)
but niether of these work. Can some please tell hoe I should do it.
Thanks
Fred
success. Perhaps someone can help me out.
I have the full file name from my application and to put it onto the
clipboard I have tried:
Clipboard.SetDa taObject(New DataObject(Data Formats.FileDro p, myFileName),
True)
where myFileName is a string and contains the full path name of the file.
When I retrieve a 'FileDrop' type data from the clipboard the object is an
array so I also tried:
Dim myFileData as String() = {myFileName}
Clipboard.SetDa taObject(New DataObject(Data Formats.FileDro p, myFileData),
True)
but niether of these work. Can some please tell hoe I should do it.
Thanks
Fred
Comment