|
-
Aug 18th, 2006, 04:19 PM
#1
Thread Starter
New Member
Drag&Drop
Hello to all members,
I've a problem with darg&drop using VB.NET 2003. I want to drop files from explorer, running under user x, to my application, running under user y.
With the code for "normal" drag&drop it doesn't works.
Private Sub Tab1_DragEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles Tab1.DragEnter
If e.Data.GetData(DataFormats.FileDrop) Then
e.Effect = DragDropEffects.All
End If
End Sub
Private Sub Tab1_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles Tab1.DragDrop
Dim fileNames As Array
If e.Data.GetDataPresent(DataFormats.FileDrop) Then
fileNames = e.Data.GetData(DataFormats.FileDrop)
End If
The DragEnter-Sub isn't activated.
Any solutions?
Thank you for help
Reinhard
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|