
ole drag and drop (IE url)
Coming from IE, its a different clipboard format. So, you have to register
the clipboard format.
Dim CF_HTML as Long
CF_HTML = RegisterClipboardFormat("HTML Format")
Right now, I'm installing .Net, so I can't immediately get into it to do the
exact systax. So, humor me if its a bit off:
[DllImport("user32.dll")]
static extern int RegisterClipboardFormat(string lpString);
Anyway, hope this helps.
Quote:
> I have a form that accepts drag and drop and it works perfectly fine
aside
> from URLs that come from IE.
> I read in some places that I need to do something about OLE drag and drop,
> but it wasnt clear what I need to do, someone suggested doing this:
> System.Threading.Thread.CurrentThread.ApartmentState =
> System.Threading.ApartmentState.STA;
> But it didnt fix my problem.
> Any suggestions?
> Thanks,
> --Carlos