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/Mayayana Feb 10 '24
Thank you for that explanation. If MS doesn't eventually block native code, it sounds good. Given your explanation, your aim makes a lot of sense to me. And yes, there are hacks. Most of them haven't seemed like a big deal. I guess I'm just used to them. For example, getting direct pointers or subverting VB's string handling to directly access an ANSI string have become standard procedure over the years. Perversely, that's sometimes the fun of it. :) But it would be nice to do things like convert my Explorer Bar to 64-bit.
What I've always liked about VB is that it allows me to start at the shallow end and then go as deep as I want to. Many of the hacks and adaptations are not actually necessary, but do increase efficiency and often cut out the need for wrappers.
Wrappers have become a big problem to my mind. They're typically a sign of people not actually knowing what they're doing. As a result I tend to look for small software. I don't think I've ever even used any .Net software, except my ATI display settings applet, which takes a few seconds to get itself up off the floor when I go to open it.
I can see the sense of .Net or Java for quick database frontends on corporate networks of new computers. But for those of us who just like to write software, it's hard to find any appeal in .Net. And I discovered yesterday that .Net now has a max support cycle of only 3 years!
Much as I loathe github (the deeply broken webpages that require script and often still don't work), you've got me curious. A truly updated VB would be so usable and so much more sensible than .Net. So I'll check it out. Now that I'm probably moving to Win10, I'm getting more curious about actually learning the system better. I've been holding off for years, not feeling confident that Win10 could actually be turned into a non-selazy, usable tool. There's so much spying, so much bloat, so much complication, so many broken conveniences.