I have been unable to get the SpecialFolder option for an OpenDialog to work.
The following code is supposed to open the dialog up in the current executable’s folder.
No matter what, it always opens up in the root device directory.
dlg=New OpenDialog
dlg.Title="Select a JPEG or PNG image file"
dlg.Filter=jpegType + pngType //Defined as file type in FileTypes1.
dlg.InitialDirectory = SpecialFolder.CurrentWorkingDirectory
f=dlg.ShowModal()
This application allows the user to use image and audio files. By opening up in the working directory I’m simply attempting to make it easier for the user to efficiently manage these in one location. The app is deployed in a directory with a “media” directory already existing. This way the user can move the app and all support files together.