Conceptually, this is a simple thing.
The file names are contained in the Files collection of the DataObject paramter that is the first parameter of the OLEDragDrop event handler for the control you want to drop on.
For example, if you have a text control named TextControl1 on your form, you would use this code to see this working:
Code:
Private Sub Text1_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
Text1.Text = Data.Files(1)
End Sub
Of course, you will want to add error handling, as well as to actually code the behaviors you want.
Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems