Private Sub RichTextBox1_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles RichTextBox1.DragDrop
If e.Data.GetDataPresent(DataFormats.FileDrop) Then
'Dim fileNames() As String = e.Data.GetData(DataFormats.FileDrop)
' I need to get the file path/name into Form1.FILE_NAME so I can process it.
Form1.FILE_NAME = e.Data.GetData(DataFormats.FileDrop).ToString
'Form1.ProcessFileOpened()
End If
End Sub
|