This program generates the Flags property for the Open and Save boxes using the Common Dialog control of Visual Basic 4. It may work with other versions, I don't know. The options I think will always be used are built in to the code, which are the "Use Explorer-type dialog" (&H8000) and "Use long file names" (&H200000). The other options are available as checkboxes. When the desired options are selected, simply copy the number and Paste It into the files property, or your code, or wherever you need it.