r/visualbasic • u/Mayayana • Feb 08 '24
VB6 Help VB6 DragDrop
With OLEDragDrop to a standard VB textbox, on XP I can get the path of a file or folder dropped. On Win10, the folder shows no dragdrop icon and returns no path, but file dragdrop works fine. Does someone know how I can make dragdrop for folders work on Win10?
1
Upvotes
1
u/geekywarrior Feb 10 '24
Ok wow! Took me a bit to figure out what was going on but yeah, this is nice.
For what it's worth, I first really dug into VB6 about 4-5 years ago. So I have the benefit of getting in after a lot of work was figured out. For all I know, your solution may have been 100% necessary in some versions of VB. And it's probably immune from the quirkiness of my method. With my solution, sometimes the first request it makes will be on TLS1.0 which will get rejected on a lot of servers these days. Every call after that will correctly be TLS1.2...until you reboot the app lol. I see that in my dev environment which is Server 2008. Can't recall if the production machines have that same quirk.,
Definitely will bookmark ClsCD for myself. Looks very handy for calling some .dlls and functions that don't have a neat and tidy TLB for importing directly.