Not directly related to your question but I find the drive, dir, file view boxes of VB a bit tedious just to select a file on your hard drive somewhere. Plus you don’t get the "My Network Places" option or UNC path capability.
Either that or I just don't know how to do it
Depending on your application off course, you might found the CommonDialog control quit useful. It’s the same control (looks the same anyway) as what Office calls when you want to open a file from inside an Office application. You can change the button caption, normally 'Open', to 'Copy' or whatever.
The control doesn't do anything with the selected file. It just gives you the filename and path.
Check your components list for Microsoft Windows Common Controls. I unfortunately can't remember what version but it should be in all since it comes with the Operating system of Windows.
MSDN: "The CommonDialog control provides an interface between Visual Basic and the routines in the Microsoft Windows dynamic-link library Commdlg.dll. To create a dialog box using this control, Commdlg.dll must be in your Microsoft Windows SYSTEM directory."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.