Solved

How to drag files from eXplorer?

Posted on 1998-11-13
2
130 Views
Last Modified: 2010-04-30
I want to drag a file from eXplorer. And drop it on... say a picBox control.
How do I do this?
(I just need the path and the filename of the file)
0
Comment
Question by:Olli083097
2 Comments
 
LVL 13

Accepted Solution

by:
Mirkwood earned 20 total points
ID: 1444775
Try this code

Private Sub Form_Load()
    Picture1.OLEDropMode = 1
End Sub

Private Sub Picture1_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
    Picture1.Picture = LoadPicture(Data.Files(1))
End Sub

0
 

Author Comment

by:Olli083097
ID: 1444776
Thanx!
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question