Limiting Viewable Directories with FileDialog
Posted on 2007-10-16
I am writing an application that needs to allow the user to create lists of files (specifically images) by choosing them one at a time from various locations on another computer on the network. Is there any way I can force a FileDialog to stay within a certain directory? (Example: I create a FileDialog, but I only want it to be able to browse through C:\My Stuff\Images\* it should not be able to access anything higher than C:\My Stuff\Images\. Also, how can I set it to look for specific file types ( jpg, tga, gif, ... )?