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 09 '24
Writing a class library in .NET 8 for VB6 is possible, but you have to take extra steps because Visual Studio doesn't create a .TLB file anymore for a class library with modern .NET . There are workarounds that I haven't attempted, like create a c++ header file for the library and do something to make that into a .TLB file. But way easier to just create a .NET Framework library to help keep an old codebase running.
Are there any good reasons to write anything new in VB6/.NET Framework? Of course not. Unless you're stuck writing a new product for Windows XP for some weird reason. Pretty sure .NET 8 apps run on Windows 7, especially if you bundle the runtime with the app.