Saludos foro,
Quisiera que me ayudaran con este problemita
tengo un form, y quiero que cuando arrastre y suelte sobre el un archivo (cualquier extension)
pueda obtener la Ruta (path) del archivo arrastrado
estoy trabajando en VB NET 2008
Así y estableciendo la propiedad AllowDrop = True
Private Sub Form1_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles Form1.DragDrop
If e.Data.GetDataPresent(DataFormats.FileDrop) Then
Dim Objetos As String() = e.Data.GetData(DataFormats.FileDrop)
For Each Archivo As String In Objetos
MessageBox.Show(Archivo)
Next
End If
End Sub
Private Sub Form1_DragEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles Form1.DragEnter
If e.Data.GetDataPresent(DataFormats.FileDrop) Then
e.Effect = DragDropEffects.All
End If
End Sub
Orale Keyen Night
eres mi idolo jaaaj
muchas gracias por la respuesta tan rapida y obiamente si me sirvio