Hi Marco,
I did once made this sample, but it is the other direction, but maybe it
helps you?
Cor
\\\
'Copy with windows explore some files and than this
Private Sub Button1_Click(B yVal sender _
As Object, ByVal e As System.EventArg s) Handles Button1.Click
Dim folderbrowserDi alog1 As New FolderBrowserDi alog
Dim iData As IDataObject = Clipboard.GetDa taObject()
If iData.GetDataPr esent(DataForma ts.FileDrop) Then
Dim clipbrd As String() =
DirectCast(iDat a.GetData(DataF ormats.FileDrop ), String())
Dim i As Integer
folderbrowserDi alog1.ShowDialo g()
For i = 0 To clipbrd.Length - 1
If System.IO.File. Exists(folderbr owserDialog1.Se lectedPath _
& System.IO.Path. GetFileName(cli pbrd(i))) Then
System.IO.File. Move(folderbrow serDialog1.Sele ctedPath & _
"\" & _
System.IO.Path. GetFileName(cli pbrd(i)), _
folderbrowserDi alog1.SelectedP ath & "temptemptemp.t emp")
End If
System.IO.File. Copy(clipbrd(i) , folderbrowserDi alog1.SelectedP ath &
_
"\" & _
System.IO.Path. GetFileName(cli pbrd(i)))
If System.IO.File. Exists(folderbr owserDialog1.Se lectedPath _
& "temptemptemp.t emp") Then
System.IO.File. Delete(folderbr owserDialog1.Se lectedPath & _
"temptemptemp.t emp")
End If
Next
End If
End Sub
///
i'm in real trouble and don't know how to handle it! May someone can give
me a hint? Following problem: In my application you can drag&drop a file from
the explorer. In my application this file will be encrypted and then you
should be able to drag&drop the file from the application to the explorer.
How can i code the last step ?!? I have tried it with DoDragDrop but
without success :-(
TIA
Marco