If the user Copies or Cuts a file to the clipboard from windows explorer, or
some other application, then pastes the file into my application I want to
copy or move the file into my application's data directory which can be
protected. If the user selected 'Cut' then I'll move the file and if the
user selected 'Copy' then I'll copy the file.
I retreive files from the clipboard as below.
Dim DObj As IDataObject = Clipboard.GetDataObject
If DObj.GetDataPresent(DataFormats.FileDrop) Then
Dim files As String() = _
CType(DObj.GetData(DataFormats.FileDrop), String())
This works fine but now I need to know if the user selected cut or copy when
putting the file(s) on the clipboard so I can decide whether to Move or Copy
the files to my directory.
Thanks for any help
Fred