I've had a request for database functionality that I've never done before, and several hours of research have led me nowhere. Here's the skinny:
My users would like to be able to drag a picture file from a digital camera onto a form and have it link to the record in the form.
Research led me to the MS ListView control as a good Drag-And-Drop activator, but I can't get an OLEDragDrop event that will work. I used the example I found somewhere
and I get
"The expression you entered as the event property setting produced the following error: The procedure declaration does not match description of event procedure having the same name."
If anyone has experience with this control, please give me some pointers! MSDN has been utterly useless on this subject.
My users would like to be able to drag a picture file from a digital camera onto a form and have it link to the record in the form.
Research led me to the MS ListView control as a good Drag-And-Drop activator, but I can't get an OLEDragDrop event that will work. I used the example I found somewhere
Code:
Private Sub ControlName_OLEDragDrop(Data As MSComctlLib.DataObject, Effect As Long, Button As Integer, Shift As Integer, x As Single, Y As Single)
Dim sF As String
Dim J As Integer
For J = 1 To Data.Files.Count
sF = sF & Data.Files(J) & vbCrLf
Next
MsgBox sF
End Sub
"The expression you entered as the event property setting produced the following error: The procedure declaration does not match description of event procedure having the same name."
If anyone has experience with this control, please give me some pointers! MSDN has been utterly useless on this subject.
Comment