I’m missing something basic. I have seen another thread that had the same problem but nothing in it fixed my problem.
I have a window with a canvas on it.
In the Open Event I have
in the DropObject event I have
[code]Dim pPictureIn As Picture
If Obj.PictureAvailable Then
pPictureIn = obj.Picture
MsgBox(“no picture received”)
//pPictureIn = obj.Picture
Me.backdrop = ResizeToFit(pPictureIn, 135, 175)
If bEditCheckStatus Then
The DropObject Event fires but I get the msgbox for “No Picture Available”
What am I missing?
What are you dropping ?
If its a file then test for a FolderItemAvailable - basically you’re getting a folderitem that contains a picture so you have to go open the file to get the actual picture
I am dragging a jpg file from the finder to the canvas.
So the dropped object is not the picture, it is the folderitem?
If under Windows, you want to use a FileType, instead of using a string. I never quite understood why, but string does not work, and filetypes work.
And you need to check on Obj.FolderItemAvailable.
[quote=338133:@william plunkett]I am dragging a jpg file from the finder to the canvas.
So the dropped object is not the picture, it is the folderitem?[/quote]
What you’re getting is a FILE that contains a picture
You could turn off acceptpicturedrop just to see this is the case
If you had this file open in preview & dragged that from preview to your app you’d get a picture drop
Okay, I get it now guys. Thanks