r/visualbasic • u/WorldlinessSlow9893 • Dec 16 '25
Made my custom WORKING FilePicker/Dialog on Visual Basic! (So after you for exp. press "Open" in mspaint, notepad,... it will show up this dialog instead of Windows')
8
Upvotes
3
u/Aware-Soil-8031 Dec 16 '25
Great! Can you explain how did you do that? Can it be restored?
2
u/cowski_NX Dec 16 '25
Why? What issue are you solving?
1
u/Neo_Techni Dec 16 '25
Yours looks significantly less functional though
1
u/fafalone VB 6 Master Dec 21 '25
Just curious if this works for applications that call IFileDialog for their open/save? Never really thought about whether that was completely new or somehow bolted on top of a GetOpenFileName call.
2
u/SolidPaint2 Dec 17 '25
I don't know what VB is like now, I used VB 3,4,5,6 and you had to use a third-party ocx/dll to set a system wide hook to intercept the calls to the dialogs.
Outside of VB (I switched to Assembly), it's actually really easy to set system wide hooks and modify/replace system dialogs.
2
u/Mayayana Dec 18 '25
Side note: How much do experienced people actually use file open browsing windows? For me it's almost never. I either drop a file into an open window (drag-drop, since Win95. :) or I use a custom context menu item. I have 5 Open with... menus, for Paint Shop Pro, Notepad, HxD hex editor and two of my own programs. Both methods are far easier that File -> Open and then browsing for most uses. The only case where I can imagine doing that would be something like a case where people allow all files to be saved to Documents, and their Documents folder is left at the default location, which is a nightmare to reach in Explorer.
Granted there are a lot of office workers, using MS Word, who don't know where their files are. But those are not the people who would be installing a custom FileOpen dialogue replacement. To my mind a far more useful product would be a good Explorer Bar that provides more options in Explorer windows. I made my own version as an HTT in Win98, then wrote an Explorer Bar in VB6 starting with XP, but it won't work on 64-bit. So maybe an Explorer Bar won't work on VB? VB6 only handles 32-bit and as I understand it, .Net can't handle shell extensions at all. And it probably wouldn't be wise to have to load so many support libraries for an Explorer window, even if it could.