If execution passes to the Else block in that DragEnter event handler then clearly the Text format is not present. If you're dragging a file then that's not surprising. The thing to do is to find out what formats the data is available in and choose a suitable one, then handle that appropriately. It's likely to be FileDrop, which I think will provide the path of the file. That's logical because the system has no idea whether the file being dropped contains text or, if it does, what the encoding might be. Even if it did, it doesn't know that your app actually wants the text rather than the path. It's up to you to decide how to process the dropped file.

I suggest that you read the following thread:

www.vbforums.com/showthread.php?546261

Be sure to read the first three posts at least.